ionic-framework
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
XMLHttpRequest cannot load and Response for preflight has invalid HTTP status code 405
CORS actually specifies that two requests should be made to the server on an AJAX call (if certain conditions apply, like sending custom headers). The first request (the one with the OPTIONS method) is called pre-flight and is used to check if it’s safe to send the full request to the server. The response from … Read more
Debugging a WebView (Ionic) app on Android via logcat
It seems that logcat can not properly parse tag names with whitespaces. So instead I suggest using grep on the device: adb shell “logcat | grep ‘Web Console'”
How can I disable or hide the scrollbar within an Ionic 2
They have a class for that and should be able to use: import { App } from ‘ionic-angular’; constructor(private app: App) { app.setScrollDisabled(true); }; See forum discussion here. But it seems to have stopped working after 2.0.0-rc.1 I believe thats related to this in their CHANGELOG when they changed a lot of attributes to classes … 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