Azure Send Test Message To Android with FCM - Results in The Token obtained from the token provider is wrong

青春壹個敷衍的年華 提交于 2019-12-25 09:00:04

问题


I have configured a notification hub in Azure to send messages to Apple and Android devices.

When sending test messages in the portal or VS.NET, the Apple messages go through with no problem, while the Android messages return an error message:

The Token obtained from the Token from token provider is wrong.

I double checked the API key to make sure that the one configured in the Azure notification hub is the correct server key from the Firebase Console under the Cloud Messaging tab.

I see the target device is registered using the server explorer. Not sure what could be wrong. I deleted the Firebase app and recreated it, but it did not help.

Not sure where to look next. Thanks.


回答1:


Finally figured out that the PushNotification plugin needed the projectID/sender id (all #'s) from the Firebase dashboard not the app id (unique name) from the Play store listing .

Now push notifications are being received



来源:https://stackoverflow.com/questions/39694294/azure-send-test-message-to-android-with-fcm-results-in-the-token-obtained-from

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!