pusher / push-notifications-android

Android SDK for Pusher Beams
https://www.pusher.com/beams
MIT License
21 stars 22 forks source link

Getting 401 unauthorised on PushNotificationsApi.registerFCM. #87

Closed linkinamine closed 4 years ago

linkinamine commented 4 years ago

Hey,

We are getting the following error: Response{protocol=http/1.1, code=401, message=Unauthorized, url=https://`my_instance_id`.pushnotifications.pusher.com/device_api/v1/instances/`my_instance_id`/devices/fcm}

We noticed a token being sent in the request fun registerFCM( token: String, knownPreviousClientIds: List<String>, retryStrategy: RetryStrategy<RegisterDeviceResult> ): Can you please tell us what does this token refers to? It is mot similar the FCM Token stored in our Cloud-Messaging settings

Thanks.