【问题标题】:Windows Phone 8.1 Push notification Testing App error : The Push Notification System is unavailableWindows Phone 8.1 推送通知测试应用程序错误:推送通知系统不可用
【发布时间】:2015-09-25 15:53:07
【问题描述】:

我正在关注一篇教程博客来学习 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

我正在尝试从 Azure 通知服务“发送测试通知”进行测试,出现以下错误:

推送通知系统不可用

对此的任何输入。

我还添加了一个按钮,点击后我在下面写了代码

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;
            }

        }

代码执行没有错误,但我没有在模拟器上收到推送通知。

【问题讨论】:

    标签: c# push-notification windows-phone-8.1 azure-mobile-services


    【解决方案1】:

    Azure 发展迅速。试试这个manual 为您的应用添加推送通知。如果有问题试试Azure diagnosis guidelines

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多