question

IslamWaheed-4837 avatar image
0 Votes"
IslamWaheed-4837 asked ajkuma-MSFT answered

Exception when sending Push Notifications through Azure NotificationHub

Please I need your support to find solution for this issue please :

_hub.SendTemplateNotificationAsync(notification, tags);

Error :

{"Unexpected exception encountered TrackingId:9f9e81b4-c5f5-4708-9193-d6b4a73509bf,TimeStamp:2021-09-08T12:53:55.7152370Z"}d exception encountered TrackingId

Also i face an error as below screen shot when try to push notification from azure

130714-image.png

Thanks,
-Islam


azure-notification-hubs
image.png (38.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@IslamWaheed-4837, Google has deprecated Google Cloud Messaging (GCM). The GCM server and client APIs are deprecated and are removed.

You could use Google's Firebase Cloud Messaging (FCM), see Sending push notifications to Android with Azure Notification Hubs (ANH) and FCM.

See -Tutorial: Send push notifications to Android devices by using Azure Notification Hubs and Google Cloud Messaging (deprecated)

ANH only support FCM/GCM through Firebase and iOS/Apple through APNS.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.