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?
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