I’m developing an app that wants to store music files it creates (mp3, ogg and wav) locally on the client device.
This app must also run as a website (it also should run as an iOS or Android app).
After lots of research, our preferred mechanism for client-side local storage of music files is IndexedDB - which has existed in webkit browsers for a while, see, e.g.
Here are my questions (can’t seem to find answers easily to those):
Can we use advanced APIs that already exist in webkit browsers, such as the IndexedDB API or the Web Audio API? Will these APIs work when the app runs not in a browser, but via Cordova as an iOS or Android app? I prefer to use the available browser/webkit APIs rather than add another Cordova layer.
When there’s a Cordova plugin with similar functionality, e.g. in the case of IndexedDB, there’s the Cordova indexed-db plugin ( https://github.com/MSOpenTech/cordova-plugin-indexedDB ) - we have a choice: either use the cordova plugin or use the webkit browser’s API directly - which one are we better off using, if we want this app to run both as a web page and as a hybrid app??
Thank you very much for your input. It isn’t clear to me if or why we need to use Cordova plugins for APIs that already exist in webkit browsers.