Page 1 of 1

Open a tab within the mobile app when clicking on a push message

Posted: Wed Dec 17, 2014 9:53 pm
by bal

Is it possible to open a tab (e.g news tab) when clicking on a push message? When sending a push message i want to send also the location/tab where it should open a specific tab.


Open a tab within the mobile app when clicking on a push message

Posted: Thu Dec 18, 2014 1:30 am
by Yurii Orishchuk

Hi Bal,

Did i understand you correct when assume that "tab"="page"?

If so:

Yes you can handle "push notification" event and use following code in case if you decide to navigate to other page:

pre

Apperyio.navigateTo("newPage");

/pre

Please read more here to understand how to handle push notification event: http://devcenter.appery.io/tutorials/...

Regards.


Open a tab within the mobile app when clicking on a push message

Posted: Thu Dec 18, 2014 5:53 pm
by bal

Yes tab=page, with some messages we want to use a link to an external website (after clicking on the push message) and another time we will redirect the users to a specific page wihtin the mobile app, after clicking. I will try to find a workaround, or do you have some advices/tips & tricks?


Open a tab within the mobile app when clicking on a push message

Posted: Fri Dec 19, 2014 1:07 am
by Yurii Orishchuk

Hi Bal,

You can open external link with inappbrowser. The solution described here:

http://devcenter.appery.io/tutorials/...

Also there is a way to open it with system browser.

Please pass tutorial above to understand how it works and choose the way more fit for your case.

Regards.


Open a tab within the mobile app when clicking on a push message

Posted: Sat Nov 28, 2015 4:29 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


Open a tab within the mobile app when clicking on a push message

Posted: Sat Nov 28, 2015 5:46 pm
by Evgene Karachevtsev

Hello Julian,

We're working on it and will post the update here: https://getsatisfaction.com/apperyio/...