【问题标题】:PushSharp + Windows Phone deep linking on Toast Notifcation吐司通知上的 PushSharp + Windows Phone 深度链接
【发布时间】:2013-05-11 01:44:00
【问题描述】:

在 Windows Phone 上使用 PushSharp 时,我发送的通知带有指向我应用中视图的深层链接。

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 开放吗?

【问题讨论】:

标签: windows-phone-7 windows-phone-8 windows-phone-7.1 pushsharp


【解决方案1】:

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

【讨论】:

  • 这似乎也不起作用。我用 ~ 推动路径,但它会在 ~ 被剥离的情况下进入设备。
  • @Stuart 是的,这是一个 Mvx 视图
  • 对于 MvvmCross 应用程序,您需要拦截“特殊启动” - 请参阅speakerdeck.com/cirrious/appstart-in-mvvmcross 中的协议开始
猜你喜欢
  • 2011-09-24
  • 2016-08-23
  • 2014-10-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多