cordova-plugins
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
Android: Deviceready has not fired after 5 seconds
If you happen to be running the Crosswalk plugin in your app I just confirmed that uninstalling it and reinstalling via; cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview Gets rid of deviceready has not fired after 5 seconds. cordova.js:1223 Channel not fired: onCordovaInfoReady cordova.js:1216 Channel not fired: onCordovaConnectionReady cordova.js:1216 You can see the issue at Crosswalk’s Jira issue … Read more
ionic 2 error cordova not available
If you want the plugin to work for the browser you should add platform browser and run it: ionic cordova platform add browser and run it: ionic cordova run browser instead of ionic serve.
Cordova: Unexpected Machine Code – Your upload contains both bitcode and native machine code
Posting an answer myself, as it seems to be quite a popular question with nobody answering — so the issue is on the Apple side. Some people contacted Apple support and confirmed this. There is no need to recompile anything. The binary with such a warning can be submitted to the AppStore — it will pass … Read more
ionic geolocation plugin error: “No provider for Geolocation”
You need to add the provider to the NgModule, i.e module.ts under providers, providers: [ Geolocation ]
How to set up Cordova plugin project with IDE support?
Developing a Cordova plugin is a bit of a pain. Here is a way to do it : Create the basic files of your plugin (plugin.xml file, .java file for Android plugin, .h and .m files for iOS) in a separated folder for your plugin Provide in your plugin.xml what is needed to install the … Read more
How to get your context in your phonegap plugin
try to put this into your plugin: Context context=this.cordova.getActivity().getApplicationContext();