Page 3 of 4

Redirect based on push notification

Posted: Wed Apr 06, 2016 5:13 am
by saurabh8122815

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)


Redirect based on push notification

Posted: Wed Apr 06, 2016 11:42 am
by saurabh8122815

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


Redirect based on push notification

Posted: Wed Apr 06, 2016 3:24 pm
by Serhii Kulibaba

Hello,

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


Redirect based on push notification

Posted: Thu Apr 07, 2016 7:33 am
by saurabh8122815

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.


Redirect based on push notification

Posted: Thu Apr 07, 2016 4:17 pm
by Serhii Kulibaba

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


Redirect based on push notification

Posted: Thu Apr 07, 2016 5:53 pm
by saurabh8122815

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.


Redirect based on push notification

Posted: Fri Apr 08, 2016 1:27 pm
by saurabh8122815

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.


Redirect based on push notification

Posted: Fri Apr 08, 2016 3:07 pm
by Serhii Kulibaba

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


Redirect based on push notification

Posted: Mon Apr 11, 2016 6:23 am
by saurabh8122815

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


Redirect based on push notification

Posted: Mon Apr 11, 2016 7:27 am
by Serhii Kulibaba

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