This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Can't find variable PushNotification #328
Comments
@BishoyA Yes, the PhoneGap Developer App currently does not support the PushNotification plugin. That is, the native code required for the push plugin is not compiled into that app. It is on my to do list to add it to the dev app so that people can test easier. |
Okay, yes thanks for your answer! I was able to test it on a mac using |
Okay, as an update, this one also failed, I had to do a live device test anyway.. |
Correct push notifications don't work on the ios-sim. |
Same issue try to build on https://build.phonegap.com with below code
|
This thread has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I wanted to use this plugin with my phonegap application, it wasn't working, so I decided to build the exact same example provided in the examples/www but it's also not working, (I tested using the Phonegap developer app for ios https://itunes.apple.com/de/app/phonegap-developer/id843536693?mt=8)
I debug it by showing the JS errors in an alert using this:
window.onerror = function(msg, url, linenumber) { alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber); return true; }
I get the following error:
ReferenceError: Can't find variable: PushNotification in index.js Line Number:40
Here are the steps I folllowed:
phonegap platform add ios
phonegap plugin add phonegap-plugin-push
examples/www
to the project's www.am I doing it wrong?
The text was updated successfully, but these errors were encountered: