Skip to content
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
@BishoyA

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:

  1. create a new cordova project ´phonegap create test´
  2. phonegap platform add ios
  3. phonegap plugin add phonegap-plugin-push
  4. I copy the files inside examples/www to the project's www.
  5. added the debugging code to the index.js
  6. phonegap build
  7. phonegap serve
  8. tested it on my phonegap developper app.

am I doing it wrong?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions