Phonegap Error - “Cannot read property 'capture' of undefined” on Android

允我心安 提交于 2019-12-05 08:40:24
Mrchief

Ok, this is the most douchy solution I ever stumbled upon!

The JS for Android is different than that for iOS. The files is named the same though - phonegap-x.x.x.js. No points for guessing it'd be different for every other mobile platform.

I understand that you need to have different JS for different platform, but how about mentioning that somewhere?

Once I dragged the JS from Android folder, everything fell into place.

Thanks to this question for the answer: deviceready won't fire in Phonegap 1.0.0 on Android

Does the phonegap.js filename in your www directory match the index.html reference? Once I change the phonegap.js to phonegap-1.3.0.js, the full example from the API docs runs on my HTC evo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!