Page 1 of 3

Push notification event not firing

Posted: Tue Feb 18, 2014 5:33 pm
by Kevin Preston

The push notification event no longer seems to fire. The push is received OK and when you click on the notification you are taken to the app but the event doesn't fire. This used to work OK, has something changed in the new version?


Push notification event not firing

Posted: Tue Feb 18, 2014 5:59 pm
by Maryna Brodina

Hello! Could you clarify what did you add on this event? What libraries version do you use? What device you use to test?


Push notification event not firing

Posted: Tue Feb 18, 2014 6:09 pm
by Kevin Preston

Maryna,
Testing on Samsung Galaxy 4 Android 4.3
Libraries V2
In the push notification event I want to navigate to a particular page, this used to work but now doesn't. To test I just added the alert

alert("START push:" + data.aps.alert);
Appery.navigateTo('myMessages');


Push notification event not firing

Posted: Wed Feb 19, 2014 11:17 am
by Kateryna Grynko

Hi Kevin,

Does alert works? Is Push notification delivered?


Push notification event not firing

Posted: Wed Feb 19, 2014 11:29 am
by Kevin Preston

Katya,
Yes notification is delivered OK. When you click on notification the app is opened but there is no event fired, I want to navigate to a particular page when the event fires, this was working fine before.


Push notification event not firing

Posted: Wed Feb 19, 2014 11:43 am
by Kateryna Grynko

Kevin,

When did it work OK last time? Did you change anything? When did it stop working?


Push notification event not firing

Posted: Wed Feb 19, 2014 12:14 pm
by Kevin Preston

Katya,
It was working three weeks ago, see last posts here
https://getsatisfaction.com/apperyio/...

I've been working on other parts of the app in the meantime and when I came back to this yesterday found it didn't work any more.
I did upgrade at some point (not sure exactly when) and have just tried going back to V1.2 libraries and it now works again, so the problem is in V2.0 libraries.


Push notification event not firing

Posted: Wed Feb 19, 2014 12:16 pm
by Kateryna Grynko

Kevin,

Thank you for the update! Yes, there could be a problem after changing version. It's better to continue work with the current one.


Push notification event not firing

Posted: Wed Feb 19, 2014 12:25 pm
by Kevin Preston

Katya,
This is not really a solution though. I have learnt from experience it is not a good idea to get behind with versions as at some stage you will have to update and the further behind you are the more trouble you will have.
Will you be fixing this in V2.0 and how will I know when you have?


Push notification event not firing

Posted: Wed Feb 19, 2014 3:44 pm
by Kateryna Grynko

Kevin,

Could you please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a? This works for us with any version.