PushSharp + Windows Phone deep linking on Toast No

2020-05-07 06:16发布

问题:

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?

回答1:

You might want to try a path of "~/Views/DetailView.xaml" instead...