Comments (6)
you can check your serviceAccount.json
file first.
{
"type": "service_account",
"project_id": "XXXX-YYYY",
"private_key_id": "abced...",
"private_key": "-----BEGIN PRIVATE KEY-----...",
...
}
from pyfcm.
@wkpark
json generated by farebase console and the json file is valid json format.
how can my checks fix the error?
from pyfcm.
@wkpark json generated by farebase console and the json file is valid json format.
how can my checks fix the error?
I can confirm that with an invalid fcm_token
, I've got the same error as yours.
params_list = [{'fcm_token': 'aaaa', 'notification_title': 'Hello World', 'notification_body': 'pyfcm 2.0.2 test from development server. thanks'}] # for async_notify_multiple_devices(params_list=params_list) args, or notify(**params_list[0])
[{'error': {'code': 400, 'message': 'The registration token is not a valid FCM registration token', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.firebase.fcm.v1.FcmError', 'errorCode': 'INVALID_ARGUMENT'}]}}]
from pyfcm.
- on the machine with pyfcm 1.5.4 works fine with the same fcm_token. so, it means the problem is not with fcm_token
- from firebase console works also
problem in pyfcm 2.0.2 with the new fcm implementation
from pyfcm.
i think you should check scopes parameter.....
from pyfcm.
request using curl response with the same error. so, it's not in pyfcm end
from pyfcm.
Related Issues (20)
- 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
- Access token not refreshed in notify
- How should we send notifications to multiple tokens with the updated API? HOT 12
- 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
- Result does not return success or failed
- Error: Cannot run the event loop while another loop is running when using async_notify_multiple_devices
- CERTIFICATE_VERIFY_FAILED using 'async_notify_multiple_devices'
- The InvalidDataError exception logs multi line text (JSON) 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.