C# WNS Azure推送通知toast不仅在工作
我们正在使用WNS Azure推送通知,在应用程序端,我们正在为互动程序和toast注册2个模板(下面的示例) 在某些WP8.1设备上,我们不接收toast通知,只接收tile通知。我们还看到,在这些设备上,应用程序没有出现在通知和操作设置页面中C# WNS Azure推送通知toast不仅在工作,c#,azure,windows-phone-8.1,azure-notificationhub,wns,C#,Azure,Windows Phone 8.1,Azure Notificationhub,Wns,我们正在使用WNS Azure推送通知,在应用程序端,我们正在为互动程序和toast注册2个模板(下面的示例) 在某些WP8.1设备上,我们不接收toast通知,只接收tile通知。我们还看到,在这些设备上,应用程序没有出现在通知和操作设置页面中 var toast = ToastContentFactory.CreateToastText02(); toast.TextHeading.Text = "$(title)"; toast.TextBodyWrap.Text = "$(text)";
var toast = ToastContentFactory.CreateToastText02();
toast.TextHeading.Text = "$(title)";
toast.TextBodyWrap.Text = "$(text)";
toast.Launch = PushArguments.GetTemplate();
var tileSquare = TileContentFactory.CreateTileSquare150x150Text02();
tileSquare.TextHeading.Text = "$(title)";
tileSquare.TextBodyWrap.Text = "$(text)";
var tileWide = TileContentFactory.CreateTileWide310x150Text01();
tileWide.Square150x150Content = tileSquare;
tileSquare.RequireSquare71x71Content = false;
tileWide.TextHeading.Text = "$(title)";
tileWide.TextBody1.Text = "$(text)";
var res1 = await hub.RegisterTemplateAsync(channel.Uri, toast.GetXml(), "toast", tags);
var res2 = await hub.RegisterTemplateAsync(channel.Uri, tileWide.GetXml(), "tileWide", tags);