Building combined armv7/x86 apk after Crosswalk integration in an Ionic project

Well I just changed my config.xml following property to false and it combined the build apk. from <preference name=”xwalkMultipleApk” value=”true”/> to <preference name=”xwalkMultipleApk” value=”false”/> My systems ionic info returns Your system information: Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic CLI Version: 1.7.16 Ionic App Lib Version: 0.7.3 OS: … Read more

PhoneGap iOS, how to get app “Documents” folder full path?

Try this code: document.addEventListener(“deviceready”, onDeviceReady, false); function onDeviceReady() { console.log(“device is ready”); window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); } function fail() { console.log(“failed to get filesystem”); } function gotFS(fileSystem) { console.log(“got filesystem”); // save the file system for later access console.log(fileSystem.root.fullPath); window.rootFS = fileSystem.root; } function downloadImage(url, fileName){ var ft = new … Read more

Use PhoneGap to Check if GPS is enabled

You could check the error code in PositionError parameter of geolocationError in your call to getCurrentPosition. I am guessing that it will be PositionError.PERMISSION_DENIED when gps is not enabled, and PositionError.POSITION_UNAVAILABLE or PositionError.TIMEOUT when gps is enabled but there are other issues. Note that this is platform dependent. You would probably have to write a … Read more

Share something to a phonegap app

To appear in this list you have to modify the AndroidManifest.xml file and add the following lines under your activity : <intent-filter> <action android:name=”android.intent.action.SEND” /> <category android:name=”android.intent.category.DEFAULT” /> <data android:mimeType=”text/plain” /> </intent-filter> This will make your app appear in the list. Now I think you may probably also want to know how to handle this … Read more

How to add a local cordova plugin with ionic / ionic 2 / ionic 3 / ionic 4 / ionic 5?

To add a local plugin with ionic : ionic cordova plugin add /path/to/my/plugin/ to remove it : ionic cordova plugin remove But to update it it’s another problem. Actually I’m removing and installing it again after each edit. Good luck ๐Ÿ˜‰ EDIT If you are using a previous version of ionic cli, and it … Read more