-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
push notification doesn't work in pyfcm 2.0.2 #333
Comments
you can check your {
"type": "service_account",
"project_id": "XXXX-YYYY",
"private_key_id": "abced...",
"private_key": "-----BEGIN PRIVATE KEY-----...",
...
} |
@wkpark how can my checks fix the error? |
I can confirm that with an invalid 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'}]}}]
|
problem in pyfcm 2.0.2 with the new fcm implementation |
i think you should check scopes parameter..... |
request using curl response with the same error. so, it's not in pyfcm end |
we have error !
steps:
test code on the server side:
result:
![1](https://private-user-images.githubusercontent.com/17139263/341013652-feec9d8b-3097-47f2-8095-5f04b696f46d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MTE4ODYsIm5iZiI6MTcyMzcxMTU4NiwicGF0aCI6Ii8xNzEzOTI2My8zNDEwMTM2NTItZmVlYzlkOGItMzA5Ny00N2YyLTgwOTUtNWYwNGI2OTZmNDZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA4NDYyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkNGRlYjlkNTRhNjk0ODAyMDhiMjQzM2FlZTFjMmQ1ZGU0MTZjYjUyMjBiMGFmM2M3NWY4MjBhMDNhZTNhNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DlwlZIzT6FfFIBXvhrUc4xzdkriEjSmXaL5ZTRaf9A0)
use to use method .notify_single_device but now FCMNotification has no this method
The text was updated successfully, but these errors were encountered: