cordova
package.json vs config.xml for cordova plugins
Edit: second update! 2017.05. It changes again – this time on Cordova side. Cordova 7 adds support for package.json! See on Cordova blog: http://cordova.apache.org/news/2017/05/04/cordova-7.html Edit: update 2016.05. It seems that many ionic commands were created due to lack of the features in cordova, but since cordova caught up and implemented many new features, the ionic … Read more
Phonegap Offline Database
I made an app recently that required this, targetting the same OS’s. You can use a combination of 2 databases : 1. LocalStorage :: Check for localStorage function supports_html5_storage() { try { return ‘localStorage’ in window && window[‘localStorage’] !== null; } catch (e) { return false; } } Set an item into LocalStorage localStorage.setItem(“bar”, foo); … Read more
What is the cordova_plugins.json file for? Cordova is requesting it at initialization
It seems like a feature introduced in Cordova 2.6.0, at least I just noticed in this version. At this point I could not find any documentation and I don’t have many details on it, but right now I solved the 404 issue adding a dummy cordova_plugins.json file to the root of my project. As it … Read more