Is it possible navigate to a certain screen after open a push notification toast on windows phone app? -



Is it possible navigate to a certain screen after open a push notification toast on windows phone app? -

i´m doing app force notifications on mfp 7 , want open screen specific info after tap on toast force notification, have found info 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 force displayed, doesn't matter). then, alter 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") { // alter page, etc , display message     }   }

you can utilize tag-based notifications (in case info sent via force notifications not sensitive information) , deed based on tag. can read more tag notifications in developer center: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/

push-notification windows-phone-8.1 mobilefirst

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -