Comments (5)
UPDATED and FIXED here: https://github.com/olucurious/PyFCM/releases/tag/1.2.0
from pyfcm.
If you don't send the message body, it means you're sending content_available instead. Look at https://github.com/olucurious/PyFCM/blob/master/pyfcm/baseapi.py#L181
from pyfcm.
They are not mutually exclusive.
On iOS the content_available flag should be used to wake the device from a background state.
If there is a message included, IOS will automatically display the notification without requiring you to fetch any data from an upstream source.
If there is no message included, IOS will display nothing (silent notification) and the device gets some background CPU time for you to fetch data should you need.
from pyfcm.
That's the point "If there is a message included, IOS will automatically display the notification without requiring you to fetch any data from an upstream source.", so why would you want to send content_available with a message?
from pyfcm.
Setting content_available = True
seems to prevent the invocation of background service workers when pushing to web browsers (see firebase/quickstart-js#71). It is a bug to set it to True
when no body is present; for browsers we want no body and no content_available
.
from pyfcm.
Related Issues (20)
- Will PyFCM be affected by API discontinuance HOT 10
- async notify_single_device
- How I can send category in "aps" dictionary ?
- tests are not working properly
- Migrate from legacy FCM APIs to HTTP v1 HOT 6
- need to include new requirements in setup.py HOT 1
- Documentation indicates just the service file is needed: HOT 1
- push notification doesn't work in pyfcm 2.0.2 HOT 6
- Access token not refreshed in notify
- How should we send notifications to multiple tokens with the updated API? HOT 15
- The options click_action and low_priority not available anymore. HOT 2
- removed parameters of the notify API HOT 1
- exceptions must derive from BaseException HOT 1
- How can i send extra_kwargs=extra_kwargs, sound="default" for Ios HOT 1
- Result does not return success or failed HOT 1
- Error: Cannot run the event loop while another loop is running when using async_notify_multiple_devices HOT 1
- CERTIFICATE_VERIFY_FAILED using 'async_notify_multiple_devices' HOT 1
- The InvalidDataError exception logs multi line text (JSON) HOT 1
- `ChefBuildError` while installing the latest version (`v2.0.5`) HOT 2
- Python 3.12 support 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 pyfcm.