Page 1 of 1
Push Notification Message (payload) retrieval inside app
Posted: Sat Nov 28, 2015 4:49 pm
by Julian Alberto De La Rosa Suncar
Hello i need help. We developed an app and the customer wants to trigger a page when receiving a push. The push is sent correctly and received in devices. But the action to open the app and retrieve the message is not working. On page Show we have this
localStorage.activePushMessage.fecha=new Date();
localStorage.activePushMessage.leido=false;
localStorage.activePushMessage.contenido=data.message;
Apperyio.navigateTo("PushHandler");
The problem it's that is not navigating to the page
Push Notification Message (payload) retrieval inside app
Posted: Mon Nov 30, 2015 1:06 pm
by Julian Alberto De La Rosa Suncar
Hello i need help. We developed an app and the customer wants to trigger a page when receiving a push. The push is sent correctly and received in devices. But the action to open the app and retrieve the message is not working. On page Show we have this
localStorage.activePushMessage.fecha=new Date();
localStorage.activePushMessage.leido=false;
localStorage.activePushMessage.contenido=data.message;
Apperyio.navigateTo("PushHandler");
The problem it's that is not navigating to the page
Push Notification Message (payload) retrieval inside app
Posted: Mon Nov 30, 2015 1:07 pm
by Julian Alberto De La Rosa Suncar
Push Notification Message (payload) retrieval inside app
Posted: Mon Nov 30, 2015 5:34 pm
by Serhii Kulibaba
Hello,
I am sorry, not sure I understand you correctly. Please specify your question.
Do you need to use local notifications?
If so - please look at this plugin:
https://github.com/katzer/cordova-plu...
You can add it as it is described here: https://devcenter.appery.io/documenta...
Push Notification Message (payload) retrieval inside app
Posted: Sun Dec 13, 2015 5:25 pm
by Julian Alberto De La Rosa Suncar
Sorry that's not what i'm asking i want to open a window inside the App when the user click the push message from PUSH. A Specific window
Push Notification Message (payload) retrieval inside app
Posted: Fri Dec 18, 2015 8:30 pm
by Serhii Kulibaba
It is possible to do with steps below:
1) save push notification to the Storage variable. You can get it on "push notification" event (variable event.detail.message)
2) add "page show" event handler with checking that variable. If it is not empty - open the window
Push Notification Message (payload) retrieval inside app
Posted: Wed Dec 23, 2015 5:57 pm
by Amr Osman
Segiy would you please give specific example (i.e) code or image for doing this.
Thanks.
Push Notification Message (payload) retrieval inside app
Posted: Thu Dec 24, 2015 12:44 pm
by Serhii Kulibaba
Sorry, but we don't have such tutorial. Please do it by yourself, and inform us if something doesn't work.