Phonegap deviceready not firing using Cordova 2.2.0 in iOS

前端 未结 5 2039
失恋的感觉
失恋的感觉 2021-01-02 06:59

I am building a PhoneGap App. Unfortunately, when deploying to iOS devices and simulators the deviceready event never fires. I\'m using Phonegap 2.2.0.

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 07:14

    I was having the same issue. I got it to work by adding the device plugin.

    $ cordova plugin add org.apache.cordova.device
    

    To verify:

    $ cordova plugin ls
    

提交回复
热议问题