简体   繁体   中英

Single page Web App (Phonegap) - cordova.js failing

Im trying to setup a simple single page web app for Android , using phonegap, but i always have an error on console saying: "Uncaught TypeError: undefined is not a function /C:/path/to/project/platforms/android/assets/www/cordova.js:925"

Cordova version: 3.5.0 - Android

Line 925: var messages = nativeApiProvider.get().exec(service, action, callbackId, argsJson);

im trying to run this web app in my desktop brownser (chrome), for testing.

I tried different resources for this cordova.js file, but without success. Any idea what can be the problem?

You can't directly use cordova.js in your browser. You will need some kind of emulatator. Like ripple emulator.

Ripple emulator

Or test on android emulator or in your device etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM