简体   繁体   中英

Windows Phone 8.1 Push notification Testing App error : The Push Notification System is unavailable

I am following one tutorial blog to learn Push Notification for Windows Phone 8.1

http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2014/04/24/windows-phone-8-1-running-code-in-response-to-cloud-push-notifications.aspx

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM