Hi there,
I'm attempting to send push notifications to my Windows Phone app, using the Azure management portal debug tab, but am getting the following error,
'The Token obtained from the Token Provider is wrong'
If I breakpoint my code the registration ID matches the registration ID of the message that fails. My code to receive is as follows,
private async Task InitNotificationsAsync() { cPNCChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); cPNCChannel.PushNotificationReceived += channel_PushNotificationReceived; cNHbHub = new NotificationHub("name", "connectionstring"); cRnRegistration = await cNHbHub.RegisterNativeAsync(cPNCChannel.Uri, new String[] { "test" } ); if (cRnRegistration.RegistrationId != null) { } }
void channel_PushNotificationReceived(PushNotificationChannel sender, PushNotificationReceivedEventArgs args) { string pop = ""; }
I register the channel with the tag "test". If I select "Windows Phone" as the platform it says 'No registrations with the tag "test" were found for the selected platform'. Only selecting Windows as the platform gets anywhere at the moment.
Any idea what i'm missing?
Somewhere out there...