Vote up!
0 Votes
1 Replies

Navigate to different screen depending upon notification

Question asked by Deepak Nandanwar on Feb 19, 2017 05:05 EST

When you tap on a notification the application launches. We have a requirement where in we have to navigate to differen forms depending upon the notification content when the application is launched by tapping on a notificatio. Is it possible to do it in Kony?

Vote up!
0 votes
Vote down!

You could try and read the notificationobject in your notification handler callback. Something like this:

function Global_online_callback(notificationobject, actionid){
    kony.print("### Running app callback for actionid: " + actionid);
    kony.print("### Online notificationobject: " + JSON.stringify(notificationobject));
    var notificationstring = notificationobject.categoryId;

//now do something based on the notificationobject


but I noticed the notificationobject is not always filled.


Replied by: Feb 22, 2017 06:26 EST