Page 1 of 1
phonegap 3.0 pushnotification registration success not firing
Posted: Thu Nov 28, 2013 11:44 pm
by steve5588065
I have an Appery project V1.0 phonegap 2.4
It reads the Appery generated localstorage pushnotificationtoken on app start and all works fine
I have upgraded the project to V1.2 phonegap 3.0 and now the localstorage pushnotificationtoken returns undefined
I have put an alert in the pushregistrationsuccess event and it never fires
The event fires fine in V1.0
What has changed?
regards
Steve
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 9:32 am
by Serhii Kulibaba
Hello Steve!
We changes push notification mechanism. Can you share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a ?
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 10:35 am
by steve5588065
Hi Sergiy
Shared
regards
Steve
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 7:07 pm
by Maryna Brodina
Are Fail and/or Complete services triggered? Using alerts try to show all values you map in request parameters. Compare what is the difference with different PhoneGap versions.
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 9:05 pm
by steve5588065
Maryna
This has nothing to do with request parameters
pushregistrationsuccess is an Appery event and it just doesn't trigger under V1.2 but does under V1.0
The localstorage variable pushnotificationtoken is an Appery auto generated value and it is not being set
steve
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 10:10 pm
by Maryna Brodina
Push registration success works with V1.2. We've just created test app with one screen and Label, checked Push settings in app settings. On push registration success added Label changing and it works. By the way if it works as you expected with v1.0 why do you need to use v1.2?
phonegap 3.0 pushnotification registration success not firing
Posted: Fri Nov 29, 2013 10:50 pm
by steve5588065
Maryna
I updated project to get the higher version of phonegap. 3.0 instead of 2.4
I have been waiting a while for an outstanding issue with Android Push Notifications and was told it was to be fixed in next update of Appery as the issue was in Android Push plugin
So that's why I updated to V1.2
Steve
phonegap 3.0 pushnotification registration success not firing
Posted: Tue Dec 03, 2013 8:41 am
by Maryna Brodina
Hello! You have error on startScreen in device ready event. There is the following code: prevar pushNotification = window.plugins.pushNotification;
pushNotification.getPendingNotifications(function(notifications) {/pre but should be this one instead prePushNotification.getPendingNotifications(function(notifications) {/pre