Question

Basically I have two distinct services I wish to use (my own WCF back end service) and an Azure Mobile Service that both use push notifications. They're associated with the same app in the windows store.

In my code, I have two separate modules that call.

var newChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

This all seemed like fun and games and unless I horribly misread the documentations, having multiple channels for one App should be ok.

However, when I sent a notification from the WCF service to the app, it went to the AMS handler and naturally threw an invalid format exception given that I'm using my own Raw push notification format.

So my question is this; do I need to re-engineer the structure to have only one push channel handler that will divide the messages based on their format to the correct handlers, or what is the methodology I need to follow in order to get multiple push channels for a single app?

Was it helpful?

Solution

See the only formats being supported in wns push notification us either e xml based format or the json data format. If while communicating to the wns you are sending some other format then then it is bound to exceptions. ? Go through the demo from the link Push notification sample

if this does not solve the problem then please leave a comment behind

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top