Make sure you have the newest Package installed (4.2.0) and you have to use the notificationHubClient.SendFcmV1NativeNotificationAsync() Function.
The V1 can be easily missed.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am able to register the device for FCM V1, once I get the notification token, I can send the test notification using azure hub overview -> Test Send option with format
`
{ "message": { "notification": { "body" : "message body"} } }
But when same message I send from my backend using
notificationHubClient.SendFcmNativeNotificationAsync
method, it always goes to gcm and I'm getting error,
Microsoft.Azure.NotificationHubs.Messaging.BadRequestException: The notification has no target applications. The notification format is gcm. Review the credentials specified in the notification hub description and the notification format
Am I missing any configuration at backend / Azure hub?
Make sure you have the newest Package installed (4.2.0) and you have to use the notificationHubClient.SendFcmV1NativeNotificationAsync() Function.
The V1 can be easily missed.