Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WNS Azure推送通知toast不仅在工作_C#_Azure_Windows Phone 8.1_Azure Notificationhub_Wns - Fatal编程技术网

C# WNS Azure推送通知toast不仅在工作

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)";

我们正在使用WNS Azure推送通知,在应用程序端,我们正在为互动程序和toast注册2个模板(下面的示例)

在某些WP8.1设备上,我们不接收toast通知,只接收tile通知。我们还看到,在这些设备上,应用程序没有出现在通知和操作设置页面中

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