PushNotifications: Upgrade to FCMv1 is not delivering Templated Notifications from Azure

Smitha Kalluparambil 5 Reputation points
2024-04-19T14:57:24.39+00:00

Using this link GCM/FCM notifications to FCM v1. I am trying to migrate from GCM/FCM notifications to FCM v1.

From the guide, I -

  1. Configured the Firebase Service Account Credentials in Azure Notification Hub.
  2. Updated backend SDK C# code use FCM v1 platform during installation & registration of push notification.
  3. Verified that the device is actually registered in notification hub (by getting registrations from notification hub).
  4. Checked that Installation is now having the new Platform : FcmV1 instead of Gcm
  5. Verified that notification is delivered to app when sent from firebase console.

The problem is:

  1. I am able to call SendFcmNativeNotificationAsync() and send a notification to the registered device.
    1. This is my template according to the migration documentation. "{ "message" : { "notification" : { "body" : "$(message)", "title" : "Test" }}}" and my call to templated notification is $NotificationOutcome = $client.SendTemplateNotificationAsync( $templateParameterDictionary, '$InstallationId:{61D21000-XXXX-}').Result
  2. But I am not able to call SendTemplateNotificationAsync() and send a notification to the registered device.
  3. When sending notification from "Test Send" in Azure Portal, it does not get delivered.
  4. When sending template notification from code (C# - Microsoft.Azure.NotificationHubs nuget), it shows same error.
Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
264 questions
{count} votes