Johnson
Johnson

Reputation: 167

Azure Notification Hub: 'Test Send' was successfully sent, but not any GCM traffic. Why?

In the Azure Portal, I created a Notification Hub. And in "Push notification services - Google (GCM)", I entered the API Key value that I obtained from GCM.

In order to verify my settings of Azure Notification Hub and GCM, I ran 'Test Send' in Azure Portal - Notification Hub.

I got a message in Portal soon as below.

Successfully sent test message. Outcome: {1 passed, 0 failed}. Please see result section for details.

BUT I have not gotten any message traffic in GCM. Refer to the screenshot, please. enter image description here

I have worked for a whole day but I'm still vague about what went wrong. Any ideas? Thank you in advance.

Upvotes: 3

Views: 6485

Answers (3)

Amir Touitou
Amir Touitou

Reputation: 3441

Pay attention to:

  1. The package name in you manifest file, it MUST be the same to the package name when you create new App in the firebase
  2. You need to change Google-Services.Json properties Build Action to googleServices.Json

Upvotes: 0

Nikita R.
Nikita R.

Reputation: 7483

What @adrian-hall said and also see whether Notification Hubs diagnosis guidelines help.

There's also an article on how to use Visual Studio Server Explorer to debug Notification Hubs issues.

Upvotes: 0

Adrian Hall
Adrian Hall

Reputation: 8035

Do you have a mobile (Android) client that is registered on both Notification Hubs and GCM?

NH won't send to GCM unless it has a registered client.

Upvotes: 3

Related Questions