Julian Alberto De La Rosa Suncar
Posts: 0
Joined: Mon Jan 27, 2014 4:08 pm

Push Notification Message (payload) retrieval inside app

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

Julian Alberto De La Rosa Suncar
Posts: 0
Joined: Mon Jan 27, 2014 4:08 pm

Push Notification Message (payload) retrieval inside app

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Push Notification Message (payload) retrieval inside app

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...

Julian Alberto De La Rosa Suncar
Posts: 0
Joined: Mon Jan 27, 2014 4:08 pm

Push Notification Message (payload) retrieval inside app

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Push Notification Message (payload) retrieval inside app

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

Amr Osman
Posts: 0
Joined: Sat Nov 14, 2015 11:58 am

Push Notification Message (payload) retrieval inside app

Segiy would you please give specific example (i.e) code or image for doing this.

Thanks.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Push Notification Message (payload) retrieval inside app

Sorry, but we don't have such tutorial. Please do it by yourself, and inform us if something doesn't work.

Return to “Issues”