Comments (2)
I definitely agree with this, but I also noticed that the list seems to grow with subsequent messages.
I am using this to send messages, where data is a dict:
result = firebase.notify_single_device(registration_id=firebaseID, data_message=data)
This yields:
[2016-11-10 22:10:15 INFO] Sending push notification to: XXXXX
[2016-11-10 22:10:16 WARNING] result = [{'failure': 0, 'canonical_ids': 0, 'success': 1, 'multicast_id': 4748446410516564226, 'results': [{u'message_id': u'0:1478815815338664%83bd77b083bd77b0'}]}]
Then when sending the second message, I get this:
[2016-11-10 22:20:17 INFO] Sending push notification to: XXXXX
[2016-11-10 22:20:17 WARNING] result = [{'failure': 0, 'canonical_ids': 0, 'success': 1, 'multicast_id': 4748446410516564226, 'results': [{u'message_id': u'0:1478815815338664%83bd77b083bd77b0'}]}, {'failure': 0, 'canonical_ids': 0, 'success': 1, 'multicast_id': 8154700141495790220, 'results': [{u'message_id': u'0:1478816116396132%83bd77b083bd77b0'}]}, {'failure': 0, 'canonical_ids': 0, 'success': 1, 'multicast_id': 6209067147212979784, 'results': [{u'message_id': u'0:1478816417412596%83bd77b083bd77b0'}]}]
So the list grows. What does this list represent? A history of sent messages? In that case only the last item in this list will give the correct response for the method, right?
from pyfcm.
Fixed in the latest commit, check the readme file
from pyfcm.
Related Issues (20)
- It looks like this bit of doco should be "default" and not "Default" HOT 1
- How to get registration_id HOT 2
- Add EMOJI in title HOT 1
- Fix async_notify_multiple_devices
- Default priority should be normal, not high HOT 2
- 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
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.