Azure Send Test Message To Android with FCM - Resu

2019-09-04 19:35发布

问题:

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