Is it possible navigate to a certain screen after open a push notification toast on windows phone app? -
i´m doing app push notifications on mfp 7 , want open screen specific information after tap on toast push notification, have found information don´t know how pass parameters of screen , others need. i´m using http adapter send notifications
if you're using event source notifications send specialized parameter payload , check value app loading (or when push displayed, doesn't matter). then, change specific page content based on payload value.
for example, here i'm sending payload "foo" value "bar":
wl.server.notifyalldevices(usersubscription, { badge: 1, sound: "sound.mp3", activatebuttonlabel: "clickme", alert: notificationtext, payload: { foo : 'bar' } });
and in app logic check value:
function pushnotificationreceived(props, payload) { if (payload.foo == "bar") { // change page, etc , display message } }
you can use tag-based notifications (in case information sent via push notifications not sensitive information) , act based on tag. can read more tag notifications in developer center: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/