PushSharp + Windows Phone deep linking on Toast Notifcation

偶尔善良 提交于 2019-12-20 06:38:21

问题


When using PushSharp with Windows Phone, I'm sending the notification with a deep link to a view in my app.

push.QueueNotification(new WindowsPhoneToastNotification()
.ForEndpointUri(new Uri(endpoint))
.ForOSVersion(WindowsPhoneDeviceOSVersion.Eight)
.WithBatchingInterval(BatchingInterval.Immediate)
.WithNavigatePath("/Views/DetailView.xaml")
.WithParameter("slug", slug)
.WithText1(text)
.WithText2(message));

But when the toast appears and I touch it to open the app, the app opens to my default view instead of the requested DetailView.

Shouldn't this open to my DetailView?


回答1:


You might want to try a path of "~/Views/DetailView.xaml" instead...



来源:https://stackoverflow.com/questions/16492954/pushsharp-windows-phone-deep-linking-on-toast-notifcation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!