-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS 9.2: Reference Error: Can't find variable: PushNotification. #779
Comments
I'm getting this same issue for iOS on PhoneGap Build for cli-5.1.1, cli-5.20 and cli-5.4.1. Works great on Android. |
I found solution! Many people asked, look: https://github.com/phonegap/phonegap-plugin-push/issues?page=1&q=is%3Aissue+PushNotification&utf8=%E2%9C%93
Insert spec="1.5.3" Version 1.6 is BAD for current build.phonegap! |
Fantastic, @shastox! I've been hunting this down for a while. Thanks for sharing. |
@shastox that just means you are using an earlier version of the plugin. |
@macdonst |
Exactly what I was looking for, thanks! I really wish plugins were more friendly with PGB, this happens all too often... |
I literally spent a whole day trying to figure out why my pgb project wasn't getting notifications. THANK YOU for the "spec='1.5.3'" tip @shastox !! |
@ewhill did you by chance try 1.7.2? There's been a few releases since this issue was opened. |
thanks a lot! |
1.7.4 still has this issue |
you need to add this to the root config.xml:
|
Hey @shastox I have add this line in my config.xml but still getting the error ReferenceError: Can't find variable: PushNotification can you help me please I am building AEM IOS App do you have any idea how to get resolve this issue ? |
@KaustubhAtMobiuso do you get an error when you add the plugin because you are using an older version of cordova-ios? |
@shastox no i didn't get any error while adding the plugin but when I try to build the project, I got this error 'AppDelegate.h' file not found |
@KaustubhAtMobiuso |
Yes @shastox I use device ready event and device ready event also got fire but still same issue is there. |
@KaustubhAtMobiuso Show a piece of code with device ready and PushNotification. |
Hey @shastox this is my code for device ready and Push Notification check it.
|
Sorry, no idea. |
@shastox Ok |
the PGB team has asked for people with issues regarding phonegap build please start an issue on the support forum: https://forums.adobe.com/community/phonegap/build please include an app id of an app that can replicate this issue. |
This thread has been automatically locked. |
I've created a new blank project PhoneGap.
Add to config.xml:
Added code from the example: https://github.com/phonegap/phonegap-plugin-push/tree/master/example/www
Global "Object Push Notification" is not created: "Reference Error: Can't find variable: PushNotification."
Apple Certifications are correct. Development.
I use PhoneGap Build.
The text was updated successfully, but these errors were encountered: