问题
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.
I have worked for a whole day but I'm still vague about what went wrong. Any ideas? Thank you in advance.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/38871103/azure-notification-hub-test-send-was-successfully-sent-but-not-any-gcm-traff