3
votes

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.

3

3 Answers

3
votes

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.

0
votes

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