1
votes

I'm trying to connect my ionic + cordova based hybrid app to Azure Notification Hub (ANH). For now I only have GCM credentials but the purpose is to register APNS credentials soon.

It seems that there are different solutions to connect to ANH via a Cordova App:

1

1 Answers

1
votes

I'm also working on a Cordova app targeting an Azure App Service that uses push notifications. The plugin I use is the phonegap-plugin-push which appears to be a more active GitHub project that the one you cited. So far, it's working for my purposes (which include tag management).

The phonegap-plugin-push does not work by itself, however. It provides services in each mobile environment to allow you to do the registration with the Azure Notification Hub. In particular, the plugin generates the PNS Identifier required by the ANH from each mobile environment - and, of course, it handles the actual delivery of push notifications. You need to combine phonegap-plugin-push with azure-mobile-apps-cordova-client.

You can also find a more complete example here: Add Push Notifications to your Apache Cordova App.