steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

phonegap 3.0 pushnotification registration success not firing

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

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

phonegap 3.0 pushnotification registration success not firing

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 ?

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

phonegap 3.0 pushnotification registration success not firing

Hi Sergiy

Shared

regards
Steve

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

phonegap 3.0 pushnotification registration success not firing

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.

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

phonegap 3.0 pushnotification registration success not firing

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

phonegap 3.0 pushnotification registration success not firing

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?

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

phonegap 3.0 pushnotification registration success not firing

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

phonegap 3.0 pushnotification registration success not firing

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

Return to “Issues”