Error with Phonegap 3.5 and xCode 5.1

Comments

4 comments

  • Avatar
    Christopher Amirian

    Here is the steps I have taken to enable the pushwoosh before I get that error: 1- I prepared my Phonegap app as normal 3.5 enabled one. 2- I created an account in Pushwoosh and added an app there. 3- I went over Apple and Google and enabled APN and Google Cloud Messaging and added to my Pushwoosh app. 4- I installed Pushwoosh Phonegap plugin into my app using PLUGMAN. 5- I added the pushnotification.js into my index.html after the cordova.js call and before app.initialize(); 6- I went over the document for enabling Pushwoosh on Phonegap inside IOS: ....

  • Avatar
    Christopher Amirian

    http://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/push-notification-sdk-integration-for-phonegap/ 7- I added the code mentioned above into my custom JS file onDeviceReady event. 8- Now I get this console error: TypeError: 'undefined' is not an object (evaluating 'window.plugins.pushNotification')

  • Avatar
    Christopher Amirian

    I wonder if I have a problem in the plugin installation or it is a problem in the code I have written. Is the process of adding the Pushwoosh plugin via command line tool PLUGMAN and adding the js file into my html file enough? Or should I add extra stuff in my config.xml? Worth to mention that I DO NOT use Phonegap Build and am using xCode and Ios specific Phonegap platform.

  • Avatar
    Dmitry Dyudeev

    Hello,

    It seems that there is some kind of a bug with PlugMan: in case you install the plugin in the iOS project directory instead of PhoneGap project directory, the plugin is installed correctly, but Cordova doesn't know about it and deletes the metadata when you try to build the application.

    We recommend to add plugin with the following command:

    cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git
    

    If it doesn't help, please let us know via Contact us form

Please sign in to leave a comment.