简体   繁体   中英

Xamarin.Android push notifications GCM to Azure Notification Hub

I have a Xamarin.Android application that I've configured for GCM using this Xamarin guide The app is able to receive the notifications this way. BUT, when I put the GCM API key in notification Hub, and send the notification via Azure, its not received in the app.

The app registers with GCM. Do I need to register with Azure Notification Hub? If yes, how?

Found the solution. I had to register with Azure notification hub too. If someone is stuck, follow this:

https://azure.microsoft.com/en-us/documentation/articles/partner-xamarin-notification-hubs-android-get-started/

Or, follow the example given in Xamarin's "Azure Messaging" component here: https://components.xamarin.com/gettingstarted/azure-messaging

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM