-
Ionic app takes too long to start | ionic ios first start takes too long
Ionic App takes too long to start →
Ionic Cordova Build for Android and iOS Platform Builds -
How to vertical align content in div
Centering in CSS: A Complete Guide | CSS-Tricks - CSS-Tricks -
How to test app in browser - cordova not available
Ionic 2: Cordova is not available. Make sure to include cordova.js or run in a device/simulator (running in emulator) - Stack Overflow -
How to add fab floating button label
FAB list feature: labels and backdrop options · Issue #8425 · ionic-team/ionic-framework · GitHub -
How to focus on input/searchbar when screen is opened
Focus the ion-searchbar on ionViewDidEnter - #2 by ravi_sojitra -
Set focus on input
Setting Focus to an Input in Ionic - #4 by Blaydator -
How to change ion-content background color
Change background-color of ion-content - #2 by luchillo17 -
How to debug app on phone
adb - ionic 2: How can I get console messages from android device - Stack Overflow -
How to disable scroll in Ionic
ionic2 - Ionic 2 <ion-content> disable scroll - Stack Overflow -
How to pass parameter to another page
Navigating & Passing Data Between Pages in Ionic 2 | DigitalOcean -
How to use global constants
typescript - Define global constants - Stack Overflow -
How to add headers to request
angular - Angular2/Http (POST) headers - Stack Overflow -
How to create key hash for android facebook
Key hash for Facebook not working? - #5 by nitishrajput01 -
Set height based on full width of screen
html - Set height as a ratio of width with only css - Stack Overflow -
How to open video picker view or gallery in ionic?
How to open video picker view or gallery in ionic? -
How to debug the app remotely
Run app on android: ionic cordova run android --liverload
Then open chrome and do open page: chrome://inspect/
There you will see devices you can debug in Chrome’s Console -
Warnings about file access with live reload | Not allowed to load local resource
Warnings about file access with live reload · Issue #287 · ionic-team/ionic-cli · GitHub
Basically, when your app is in --livereload mode you can’t access resources on your phone, you need to build app without --livereload, but you can still access files and submit them to the server even in --livereload mode -
Cannot find module ‘@angular/tsc-wrapped/src/tsc’
npm install --save-dev @angular/tsc-wrapped -
How to crop image aspect ratio
How to crop image with resize width and height - #5 by Chungtheng
Plugin for that: cordova-plugin-k-imagecropper - npm -
Class not found
Just do this: “ionic cordova platform rm android” and then “ionic cordova platform add android” -
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 18 declared in library
Change this in your config.xml, increase value: -
Error: Cannot find module “@ionic-native/file”
Do: npm install --save @ionic-native/file -
Ionic 2 - Error : net::ERR_CONNECTION_TIMED_OUT when run on android device
cordova - Ionic 2 - Error : net::ERR_CONNECTION_TIMED_OUT when run on android device - Stack Overflow -
Ionic2 navController pop with params (CallBack)
User Modals for that
Ionic2 navController pop with params (CallBack) - Stack Overflow -
Detect when app comes from background or goes to background
Platform | Ionic Platform to Customize Apps to Fit Any Device
this.platform.resume.subscribe(() => { console.log(" This will appear only in Android//iOS. nothing at chrome") });
this.platform.pause.subscribe(() => { console.log(" This will appear only in Android//iOS. nothing at chrome") }); -
PhoneGap build private bitbucket
https://www.monkehworks.com/using-private-bitbucket-repositories-with-phonegap-build/ -
clang: error: linker command failed with exit code 1 library not found for -lGoogleToolboxForMac
To fix that I had to add some libraries
-
Error: Cannot read property ‘replace’ of undefined
cd platforms/ios/cordova;
npm i ios-sim@latest -
Cannot read property ‘0’ of undefined
https://github.com/npm/npm/issues/17858#issuecomment-316631139 -
TypeError: Cannot read property ‘find’ of null
TypeError: Cannot read property 'find' of null · Issue #2623 · ionic-team/ionic-cli · GitHub -
clear cache directory and files in it
cordova - Ionic 2: Get size cache directory and clear it - Stack Overflow -
create pem file
Home -
xxx has conflicting provisioning settings. xxx is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to “iPhone Developer” in the build settings editor, or switch to manual signing in the project editor. Code signing is required for product type ‘Application’ in SDK ‘iOS 10.3’
I had to add my certificates (.cer and .p12) files to KeyChain, just import it.
-
Error: Variable(s) missing: APP_ID, APP_NAME
Just reinstall facebook4 plugin: ionic cordova plugin add… -
Adding iOS platform
I had a problem with adding platform because of facebook: Error: Variable(s) missing: APP_ID, APP_NAME. I just reinstalled facebook4: ionic cordova plugin add…
Then I added a platform: ionic cordova paltform add ios
Then I added Development Team in XCode. Then inside Build Phases > Link Binary With Libraries I added mine “.a” files, if I didn’t add them I would get linker error: clang: error: linker command failed with exit code 1.
I had a problem with Push and Firebase. I did “pod setup” inside ionic folder, then I moved to platforms/ios and did “pod install”.
Sometimes I got an error something like: “diff/ Podfile.lock”. I removed “Pods” folder and Podfile.lock inside platforms/ios and did “pod install”. I even Unchecked and checked “Automatically manage signing” and cleaned project in XCode.
In order to build an app I had to mnually choose profiles