I have a phongap application with sqlite plugin that works on both Android and iphone. When I try to run it in Ripple, I get a few errors depending on the inclusion of the cordova version and the device I am using. None of them work at all. In some comments on stackoverflow, I saw how people working with sqlite in a telephone bundle throbbed.
I use the PG-SQLitePlugin-Android plugin in my project, which it usually only supports Phonegap 2.7.0 +.
I found that I can force Ripple to use 2.7.0 by calling it:
File: //localhost/Users/----/----/----/www/index.html enableripple = Cordova-2.7.0
Ripple really loads fine after enabling file system access via chrome.
When I include cordova-2.7.0.js in my script
A pop-up message appears in index.html with the following text:
space: ["Device", "getDeviceInfo", "Device119187522"]
that I can accept or cancel, then two more dialogs will appear if I agree to be hanged.
js console shows that cordova 2.7.0 really works:
Return to PROMPT mode since _cordovaNative is missing. Only expected for Android 3.2 and below. Cordova-2.7.0.js: 906
deviceready not starting
When I include cordova-2.9.0.js in my script
This happens the same way as 2.7
Return to PROMPT mode since _cordovaNative is missing. Only expected for Android 3.2 and below. Cordova-2.7.0.js: 906
but this time I get other errors
Failed to load resource file: //localhost/Users/laullobetpayas/-------/---/------/www/cordova/cordova_plugins.json Failed to load resource file: // localhost / Users / ------- / --- / ------ / www / cordova / cordova_plugins.js
deviceready not starting
If in my script
does not contain any cord .js,
SQLitePlugin.js: 31 Uncaught ReferenceError: cordova not defined SQLitePlugin.js: 34
- Am I using the correct plugin?
- which is the version of the tu / ku device with plugin and ripple?
- Is it necessary to include the cordova.js project in the project.
Hel will really like it, he has been trying to solve this problem for a long time. Thank you for your promotion.