This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
Can't find variable PushNotification #328
Closed
Description
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:
- create a new cordova project ´phonegap create test´
phonegap platform add ios
phonegap plugin add phonegap-plugin-push
- I copy the files inside
examples/www
to the project's www. - added the debugging code to the index.js
- phonegap build
- phonegap serve
- tested it on my phonegap developper app.
am I doing it wrong?
Metadata
Assignees
Labels
No labels