I am following one tutorial blog to learn Push Notification for Windows Phone 8.1
I am trying to test it from Azure Notification Service "Send Test Notification", there am getting below error:
The Push Notification System is unavailable
Any Input on this.
I have added a button also and on click i have written below code
private async void OnRegister(object sender, RoutedEventArgs e)
{
try
{
var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
NotificationHub hub = new NotificationHub("jaydeepapp", "ccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=hQm+Sq15ijRglWGacnngtzUu2wKL3MKcAz0X4xsmo1Y=");
await hub.RegisterNativeAsync(channel.Uri, new string[] { "Hi", "Jaydeep" });
}
catch (Exception ex)
{
throw ex;
}
}
code is executing without error but i am not getting the Push notification on the emulator.
Azure is developing rapidly. Try this manual for add push notifications to your app. If there are problems try Azure diagnosis guidelines
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.