![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
cordova-plugin-indexeddb
Advanced tools
Implements Indexed Database API support for Apache Cordova apps based on IndexedDBShim implementation.
Support of Android and iOS.
Plugin follows Indexed Database API specification, no special changes are required. The following sample code creates todo
store (if not exist) and adds new record.
var openReq = window.indexedDB.open("sampleDatabase");
openReq.onupgradeneeded = function (event) {
var db = event.target.result;
db.createObjectStore("todo", {autoIncrement: true});
};
openReq.onsuccess = function (event) {
var db = event.target.result,
sampleItem = {
todo: "my todo item",
added_on: new Date()
};
var addReq = db.transaction("todo", "readwrite").objectStore("todo").add(sampleItem);
addReq.onsuccess = function (event) {
console.log("Operation completed successfully");
};
addReq.onerror = function (event) {
console.log("Operation failed");
};
}
openReq.onerror = function (event) {
console.log("Operation failed");
}
Plugin is Apache Cordova CLI 3.x compliant.
Make sure an up-to-date version of Node.js is installed, then type the following command to install the Cordova CLI:
npm install -g cordova
Create a project and add the platforms you want to support:
cordova create sampleApp
cd sampleApp
cordova platform add android
cordova platform add ios
Add IndexedDB plugin to your project:
cordova plugin add com.msopentech.indexeddb
Build and run, for example:
cordova build android
cordova emulate android
To learn more, read Apache Cordova CLI Usage Guide.
Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
FAQs
Cordova IndexedDB Plugin
We found that cordova-plugin-indexeddb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.