- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hi,
i develop a Little app with an indexedDb Database. I am Import the plugin: "cordova-plugin-indexedDB" (0.1.2) and the IDE automatic Import the plugin "cordova-plugin-websql" (0.0.10).
On emulate Devices the app works fine. On Chrome too. The build end wiht no Errors and i can install the app on my iPhone 6 IOS 9.3.2. The App starts but no data stored in the database.
Build Log
- Building a Cordova 5.4.1 application.
- Using platform cordova-ios 4.0.1.
- The application name is "dumbo"
- The package name is "de.schumannsolutions.u18"
- Plugin "cordova-plugin-statusbar" (2.1.0) installed.
- Plugin "cordova-plugin-device" (1.1.1) installed.
- Plugin "cordova-plugin-splashscreen" (3.2.0) installed.
- Plugin "cordova-plugin-indexedDB" (0.1.2) installed.
- Plugin "cordova-plugin-websql" (0.0.10) installed.
- Targeting iOS version 8.0.
any idea ? Thanks
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Many people prefer to use the SQLite plugin (see the featured plugins list -- cordova-sqlite-storage).
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
This is the code to work with Android and IOS. The "Cordova VKWebView Engine" is incompatible with IndexedDB then you do not use it.
document.addEventListener(
"app.Ready",
function(){
if(window.device.platform !== 'Android'){
window.shimIndexedDB.__useShim();
}
createLocalDB();
},
false
);
var db=null;
function createLocalDB(){
db=null;
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
var request = indexedDB.open(LOCAL_DB_NAME, LOCAL_DB_VERSION);
request.onupgradeneeded = function(){
db = request.result;
// from heare, create your objectStore
}
request.onsuccess = function(){
console.log("Success");
}
request.onerror = function(){
console.log("Error in indexedDB");
}
}
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
