saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

var pageName = data.aps.alert;
Apperyio.navigateTo(pageName);

I use this code but that didn't work.Using this code my device id are automatically delete in my devices collection.

so how can i navigate to another page clicking on push notification(not home page)

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

In Appery.io site( example jabong app) , click on push notification,open that notification releated page(different page).So how to same type of thing do in my Application

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

Redirect based on push notification

Hello,

It works for previous versions of the libraries. Please look at this documentation page: https://devcenter.appery.io/documenta...

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

hello Sergiy,
thnx for d reply,i tried "data.message" but page are not redirect.Also same problem are occured the deviceid are automatically delete in device collection.so how can i redirect page on click on push notification.

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

Redirect based on push notification

Did you get a message? Could you add an alert for checking that, e.g.: alert(pageName);

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

Yes,i tried,but using "data.aps.alert" in my application, the deviceid of device collection are automatically remove.Now i remove that code and try again the deviceid are show in my device collection.So what is another solution for redirect another page by click on push notification.

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

hello,
i try "Push notification"

var message = data.message, pageName = '';
switch(message){
case "notification 1": pageName = "checkbox_list"; break;
case "notification 2": pageName = "welcome"; break;
case "notification 3": pageName = "Screen3"; break;}
if (pageName) {
Appery.navigateTo(pageName);
}

but using above code, if i have click on push notification - open another page in my app not home screen...that's works great.But problem is if my app is open and if i send new push notification (which are opens another page) they directly redirect another page(NOT ON CLICK TO REDIRECT ANOTHER PAGE). So how to solve this problem.

Now my previous problem, using "Push initialize"- the deviceid are delete automatically that are solved.Now using "Push initialize" my deviceid are not deleted in my device collection.

Using "Push initialize" - page are not redirect ,that problem occur in "Push initialize". So how to solve this problem plz tell me any solution.

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

Redirect based on push notification

You have to add the same code for navigation to the new page on each page of the app.

saurabh8122815
Posts: 0
Joined: Mon Mar 21, 2016 5:08 am

Redirect based on push notification

Hi Sergiy,
I tried same thing as u say but problem are not solve..pages are redirect automatically if application open.

I have share my application to you.My application name is "push_notification".

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

Redirect based on push notification

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Please be sure push notification is received before navigation to the next page

Return to “Issues”