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

What is the difference between $ionicView.enter and cache:false

I really enjoyed this Q & A: ui.router not reloading controller Where the Bipin Bhandari nicely summarizes the options we have with ionic caching mechanism avoid caching by cache: false, disable caching with $ionicConfigProvider.views.maxCache(0); or keep caching as is, and let controller be executed only once … while doing some smart stuff during these View … Read more

ANDROID_HOME is not set and “android” command not in your PATH Phonegap

I faced the same problem, and it’s solved. I think it’s issue with the compatibility of the latest cordova with latest android. As well as you’ve issue with the android home path. In .bashrc file export HOME=”/home/indranil” export ANDROID_HOME=”$HOME/software/adt-bundle-linux-x86_64-20140702/sdk” export PATH=”$HOME/software/adt-bundle-linux-x86_64-20140702/sdk/tools:$ANDROID_HOME/platform_tools:$PATH” Try to download the latest android SDK if you’re using older version. And download … 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/my.plugin.folder.here/ to remove it : ionic cordova plugin remove my.plugin.folder.here 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

How to use angular 2 service with Ionic 2?

There is no use of Bootstrap() in Ionic2, only use of @App to declare your app. You still need to declare your service in your @Page component. Create your service import {Injectable} from “angular2/core”; import {Http} from “angular2/http”; @Injectable() export class DataService { constructor(http: Http) { this.http = http; this.data = null; } retrieveData() { … Read more

NavController doesn’t work in Ionic 4

Now, to complete the final step and implement those routes in our app-routing.module.ts file, they would look like this: const routes: Routes = [ { path: ”, redirectTo: ‘/home’, pathMatch: ‘full’ }, { path: “https://stackoverflow.com/questions/51828017/home”, loadChildren: ‘./pages/home/home.module#HomeModule’ }, { path: ‘products’, loadChildren: ‘./pages/products/products.module#ProductsModule’}, { path: ‘products/:id’, loadChildren: ‘./pages/product-detail/product-detail.module#ProductDetailModule’ }, { path: ‘products/categories’, loadChildren: ‘./pages/product-categories/product-categories. { … Read more