Comments (7)
Actually, it seems stranger than that. When submitting two IDs, I got back two outer elements, where the first one contained result 0, and the second one contained both results 0 and 1.
from pyfcm.
The Readme file has been updated in previous updates
from pyfcm.
For example, here is a request where I sent two ids, one of which does not match the api key, and the other a totally bogus made up id.
[
{'failure': 1, 'canonical_ids': 0, 'success': 0, 'multicast_id': -1,
'results': [{'error': 'MismatchSenderId'}]},
{'failure': 2, 'canonical_ids': 0, 'success': 0, 'multicast_id': -1,
'results': [{'error': 'MismatchSenderId'}, {'error': 'InvalidRegistration'}]}
]
The response makes it look like three ids were submitted.
from pyfcm.
Can you also help look at the code to figure out what's going on
from pyfcm.
Can I see a sample code where you calling the method? Are you calling once or twice?
from pyfcm.
Basically, what happened is you called the notify methods twice and the results were accumulated, working on a fix already
from pyfcm.
UPDATED and FIXED here: https://github.com/olucurious/PyFCM/releases/tag/1.2.0
from pyfcm.
Related Issues (20)
- Error: type object 'Retry' has no attribute 'DEFAULT_ALLOWED_METHODS' HOT 6
- Badge is not updated if the app is open HOT 1
- Being explicit about your versioning strategy HOT 2
- Can't import module HOT 1
- Connection pool is full, discarding connection: fcm.googleapis.com
- AttributeError: type object 'Retry' has no attribute 'DEFAULT_ALLOWED_METHODS' HOT 2
- SyntaxError: getting error while pytesting in python 2.7
- SyntaxError: getting error while pytesting in python 2.7 HOT 1
- Receiving FCM notifications HOT 1
- android_channel_id is missing in multiple_devices_data_message
- what is the role of private and public key
- Any plans for migrating from lagecy HTTP to HTTPv1 ? HOT 8
- 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 ?
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.