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:
- A cordova plugin: https://github.com/sgrebnov/cordova-plugin-azure-notificationhub: did someone already use this? Are there any prerequisites (phonegap-push-plugin for example)?
- The ANH REST API: https://msdn.microsoft.com/en-us/library/azure/dn495627.aspx and https://msdn.microsoft.com/en-us/library/azure/dn223265.aspx: I tried to do a POST to the CreateRegistration endpoint with the data required for Native GCM messages. However I always get a 400 with this error message in the response: "An invalid tag 'System.Collections.Generic.HashSet`1[System.String]' was supplied. Valid tag characters are alphanumeric, _, @, -, ., : and #." It seems to be related to the {GCM Registration Id} I'm passing. Whatever I provide, it returns that error. Anyone knows the format of a valid GCM registration id that can be provided to this API?