App.xaml で OnLaunchedEvent をオーバーライドして、ユーザーがトースト通知をクリックしたときにページを起動しようとしています。
これがそのコードです。
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
string launchstring = args.Arguments;
if (lauchstring=="InstructionSet"")
{
rootFrame.Navigate(typeof(InstructionSet));
}
}
このコードは、Azure から渡された Arguments の "Instructonset" 文字列をチェックし、そのページを起動します。
これが私のAzureコードです
push.wns.sendTileWideSmallImageAndText04(channel.uri, {
image1src: item.imageUrl,
text1: item.componentName,
text2:item.alarmType,
audiosrc:'ms-winsoundevent:Notification.Looping.Call', audioloop:'false'
}, {
success: function(pushResponse) {
console.log("Sent push:", pushResponse);
},launch:"launch_url"
});
通知が表示されますが、クリックしても何も起こりません。ここで何が間違っていますか。