Relative Content

Tag Archive for firebase-cloud-messaging

Firebase Cloud Messaging Migrate from legacy FCM APIs to HTTP v1

I am trying to migrate my android app. I followed the documentation and migrated everything else but stuck with token generation. I followed the following post /a/78575180/27368045 , and I am getting the following log
getAccessToken: Error getting access token for service account: 400 Bad Request POST https://oauth2.googleapis.com/token {"error":"invalid_grant","error_description":"Invalid grant: account not found"} . I tested my json file using google cloud cli and I am successfully getting access token but don’t understand why I am getting the above when using in my app. Can anybody make me undertand this issue , how with the same json I am able to get a token with cli but not in my app ? And how can I fix it ?

Subscription limits for topics in FCM

The FCM documentation states that From the server, you can subscribe or unsubscribe up to 1000 devices in a single request. If you provide an array containing more than 1000 registration tokens (devices), the request will fail with the error messaging/invalid-argument.

connection was closed in FCM Legacy push message

when i send push notification, facing issue messages are undelivered and connection was closed.
we need to fix the connection was closed issue fix.some time i am getting not yet implemented Error.
why it is failing with connection was closed error?.
we are tried with notification payload and need to save