0

将 PushSharp 与 Windows Phone 一起使用时,我发送的通知带有指向我的应用程序视图的深层链接。

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。

这不应该对我的 DetailView 开放吗?

4

1 回答 1

0

您可能想尝试“~/Views/DetailView.xaml”的路径...

于 2013-05-11T01:51:39.833 回答