FMC v1 test send message failed

Izidora 0 Reputation points
2025-03-12T11:05:12.1166667+00:00

I am trying to set up FCM v1 in Azure notification hub.

  1. I generated private key in Firebase Console by choosing Service accounts -> generate new private key.
  2. In Azure notification hub i entered data from json downloaded in previous step (private key, mail, project id).
  3. Also, in google cloud console i do have an account with role Firebase Service Management Service Agent (1) where key is the same as one in mentioned json file.

When i try Test send i get

The Push Notification System rejected the request because of an invalid credential
The Push Notification System rejected the request because of an invalid credential'

Is there something i forgot? What else can i check?

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.
354 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alekhya Vaddepally 165 Reputation points Microsoft External Staff
    2025-03-12T14:06:45.2833333+00:00

    Hi Izidora,

    It looks like you’ve set up most of the configuration correctly, but the error "The Push Notification System rejected the request because of an invalid credential" suggests an issue with authentication. Here are some key things you should check

    verify the credential which you have given like private key, client email id and project id is you entered in the Azure Notification Hub match exactly with the values in the JSON file you downloaded from the Firebase Console, also check the private key is entered correctly without extra spaces or line breaks.

    check service account which you have created have necessary permissions

    steps like:

    Go to Google Cloud Console → IAM & Admin → IAM.

    Find the service account associated with your JSON key.

    The role "Firebase Service Management Service Agent" should be sufficient, but you might also want to check that it has the "Firebase Admin" role or similar permissions.

    Also check Firebase service management is enable if not try to enable it

    After updating the credentials in the Azure portal, it may take a few minutes for the changes to propagate. If you just made the changes, try waiting a bit and then test again.

    double-check for any typos in the credentials you entered. Even a small mistake can lead to authentication failures.

    https://learn.microsoft.com/en-us/azure/communication-services/tutorials/call-chat-register-android-push-fcm-v1#register-for-android-sdk-push-notifications-using-firebase-cloud-messaging-http-v1

    https://learn.microsoft.com/en-us/azure/notification-hubs/firebase-migration-rest#rest-api

    https://learn.microsoft.com/en-us/azure/communication-services/tutorials/call-chat-migrate-android-push-fcm-v1#troubleshooting

    If this answer was helpful and pointed you in the right direction, please consider clicking "Accept Answer"—it may benefit other community members reading this thread. If you have any further questions, feel free to let us know.


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.