在 Toast 通知上使用 PushSharp + Windows Phone 深层链接 [英] PushSharp + Windows Phone deep linking on Toast Notifcation
本文介绍了在 Toast 通知上使用 PushSharp + Windows Phone 深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Windows Phone 上使用 PushSharp 时,我发送的通知带有指向我的应用中视图的深层链接.
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));
但是当 toast 出现并且我触摸它以打开应用程序时,应用程序打开到我的默认视图而不是请求的 DetailView.
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.
这不应该对我的 DetailView 开放吗?
Shouldn't this open to my DetailView?
推荐答案
您可能想尝试改为使用~/Views/DetailView.xaml"路径...
You might want to try a path of "~/Views/DetailView.xaml" instead...
这篇关于在 Toast 通知上使用 PushSharp + Windows Phone 深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文