Comments (6)
Hi @RoyDeng,
-
iOS Silent Notifications require the Background Modes -> Remote Notifications capability to be enabled. Please ensure this capability is enabled in your Xcode project settings, and try sending a silent notification with
contentAvailable: true
again. -
Please ensure your app has not been swiped away (killed) as this will prevent silent notifications from waking up your app (this is an Apple iOS platform restriction).
-
If testing using the Xcode debugger, please note that the debugger won't break on
didReceiveRemoteNotification:fetchCompletionHandler
if your app is not in foreground when a silent notification comes in.
from node-gcm.
Thanks for your response.
I would like to confirm that this setting is equivalent to content-available: 1
in notification?
Also, I enabled remote notifications capability in the background Modes, it still doesn't work.
from node-gcm.
Hi @RoyDeng,
Yes, setting contentAvailable: true
will lead to content-available: 1
being passed to the APNs server and a silent notification being sent.
Please confirm items 2 and 3 are not the cause as well (app not killed/not being debugged in background).
from node-gcm.
I have solved the problem, thanks.
from node-gcm.
from node-gcm.
Hi, I found that I also use didReceive and didReceiveRemoteNotification at the same time. Based on the life cycle, it does not call the function I expect.
from node-gcm.
Related Issues (20)
- Address deprecation of request package HOT 2
- How to add analytics label to message? HOT 5
- Unable to send push to browser(firefox, chrome) always getting InvalidRegistration HOT 4
- Make send URI configurable HOT 1
- fcm_options and analytics_label fields are not sent to FCM servers? HOT 2
- TypeError: Cannot read property 'error' of undefined failed_tokens example HOT 1
- Not receiving notifications - ios HOT 2
- Add snyk to fix vulnerabilities faster HOT 15
- Add missing GitHub releases and version tags
- Add CI to require passing tests before release HOT 2
- readme error in failedTokens snippets HOT 1
- Removing no longer valid FCM tokens HOT 1
- Add release automation HOT 2
- Support for Google Service Accounts authorization HOT 2
- Firebase Legacy HTTP API discontinued by June 20, 2024 HOT 12
- request package security issue. HOT 3
- Handle non-HTTP errors HOT 1
- Handle all HTTP errors
- Migration from legacy FCM to HTTP v1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gcm.