如何在Windows Phone 8.1中创建推送通知通道

时间:2016-02-05 11:13:37

标签: windows-phone-8.1 windows-phone

HttpNotificationChannel类在Windows Phone 8.0中运行,但它没有在windows phone 8.1中运行。

Windows Phone 8.1还有其他选择吗?

1 个答案:

答案 0 :(得分:0)

检查here

PushNotificationChannel channel = null;

try
{
    channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
    Debug.WriteLine("Channel :: " + channel.Uri.ToString());

}

catch (Exception ex)
{ 
    // ... 
}