FCM V1 notifications are not delivered from Azure Notification Hub

Hiran Desai 50 Reputation points
2024-04-16T12:06:03.7033333+00:00

I am following this Microsoft Guide 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. Updaeted backend and app (Xamarin) to 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) Registration Description Json from Notification Hub
  4. Verified that notification is delivered to app when sent from firebase console.

The problem is:

  1. When sending notification from "Test Send" in Azure Portal, it does not get delivered and I can see error under 'FCM v1 Errors' metrics. Notification error
  2. When sending template notification from code (C# - Microsoft.Azure.NotificationHubs nuget), it shows same error.

Here are some tracking id (I don't know how I can use those to get more information):

  • eba8824d-6625-46ca-aa4c-b89cf4fbf9a3
  • d1638928-dc27-49ee-a4ee-2ccc1451acb6
  • 58e2b6b4-1075-465a-9f17-1d6810e6d9b4
  • 0d62ae4c-495c-4da5-8bbe-ed1b43d00413
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.
326 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
{count} votes

Accepted answer
  1. ajkuma 27,101 Reputation points Microsoft Employee
    2024-04-19T18:25:34.5666667+00:00

    @Hiran Desai , Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer. They can only accept answers by others, I' have summarized and posted the solution, request you to Accept the answer, it will benefit the community find the answers quickly.

    Scenario:

    Migrating from GCM/FCM notifications to FCM v1 using Azure doc: Google Firebase Cloud Messaging migration using Azure SDKs - configured Firebase Service Account Credentials in Azure Notification Hub, updated backend and app to use FCM v1, and verified device registration and notification delivery from Firebase console.

    Issue:

    Notifications sent from Azure Portal's 'Test Send' and via code using Microsoft.Azure.NotificationHubs nuget are not delivered.

    The error "The notification could not be delivered due to an unknown error" occurs.

    Resolution:

    The problem was resolved by enabling Firebase Messaging API on Google console.

    The doc will be update to add clarity on this step: https://learn.microsoft.com/azure/notification-hubs/firebase-migration-sdk


     If the answer helped (pointed you in the right direction) > please click Accept Answer - it will benefit the community to find the answers quickly.

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Hiran Desai 50 Reputation points
    2024-04-19T14:38:03.95+00:00

    Enabling Firebase Messaging V1 API on Google Cloud console fixed.


  2. Pieter Nijs 1 Reputation point MVP
    2024-10-01T10:56:36.9166667+00:00

    I got this error message as well. I was able to fix this by downloading the google-services.json file from Firebase and update my existing app's google-services file with the new one. Once the updated file was in place and ran the app, I was able to send Test Push Notifications.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.