本文介绍了PushSharp + Windows Phone在Toast通知上的深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在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));
但是当烤面包出现并且我触摸它以打开应用程序时,该应用程序将打开到我的默认视图,而不是请求的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...
这篇关于PushSharp + Windows Phone在Toast通知上的深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!