phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.31k stars 996 forks source link

iOS: onNotificationAPN is not firing #331

Open projectsphonegapdev1 opened 10 years ago

projectsphonegapdev1 commented 10 years ago

When the app in the background or coldstart the onNotificationAPN function is never called so what to do in this case to get the payload value?

Khronoss commented 10 years ago

Hi,

If you're running your app on iOS7, I had the same problem. In fact, in the new version of PushPlugin, there is no call of registerForRemoteNotificationTypes (which is required for iOS7 and earlier). Take a look on my issue (#332), it might (and I hope) help you

projectsphonegapdev1 commented 10 years ago

Thanks Khronoss.

bau720123 commented 10 years ago

hi @Khronoss I have the same problem too

when I using PGB 3.5 and pushplugin 2.1.1,everything is fine but now... I using PGB 3.6.3 and pushplugin 2.3.1,but broken,the "onNotificationAPN" can't trigger anymore,I promise,the code all the same

for detail information about the "bojote" said... http://community.phonegap.com/nitobi/topics/ios_problem_with_push_notification_plugin_for_phonegap_build

Khronoss commented 10 years ago

@bau720123, on which iOS version does it not work ? On which one it does ? Is there any call to registerForRemoteNotificationTypes in the pushplugin.m ?

bau720123 commented 10 years ago

hi @Khronoss I am just use "PGB" (build.phonegap.com) for more detail,please look at this address http://community.phonegap.com/nitobi/topics/pushplugin-2-3-1s-onnotificationapn-cant-trigger-anymore

KinG-InFeT commented 9 years ago

+1 i have a same problem