ionic3

Ionic app crashes on iOS 12.2 because of '_alwaysRunsAtForegroundPriority'

扶醉桌前 提交于 2019-12-03 14:00:16
问题 On iOS 12.2 my app is terminated just after startup, with this message in xcode: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.' Anyone who can point me in the right direction for this one? I see that there has been some warnings about this earlier: How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp:

AngularFireList is not assignable to type 'Observable<Response>

廉价感情. 提交于 2019-12-03 13:14:52
I have an Ionic page which is querying FirebaseListObservable to make dynamic searching on ion-searchbar. It works well with Angularfire2@4.0.0-rc.0 and firebase@4.5.0. After upgrading new release AngularFire 5.0 I get an issue about FirabaseListObservable has no exported from new Api. import { Component } from '@angular/core'; import { IonicPage, NavParams, ViewController } from 'ionic-angular'; import {AngularFireDatabase, FirebaseListObservable} from 'angularfire2/database'; import { Observable} from 'rxjs'; import { Response } from '@angular/http'; @IonicPage() @Component({ selector: 'page

Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0

蓝咒 提交于 2019-12-03 13:13:25
Could not resolve all files for configuration 'classpath'. Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0. Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar file:/C:/Users/e1706396/.m2/repository/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom file:/C:/Users/e1706396/.m2

Ionic 3 - All imports are unused warning (even though they are being used)

落花浮王杯 提交于 2019-12-03 13:09:38
I am getting the following error when trying to run a prod build using the following ionic cordova build browser --prod Getting lot of warnings in the terminal like FormBuilder is declared but never used Even though in my code I am importing it and using it e.g. import { Validators, FormGroup, FormBuilder } from '@angular/forms'; public form: FormGroup; constructor( private formBuilder: FormBuilder ) { setForm(){ this.form = this.formBuilder.group({ password: ['', Validators.required], password2: ['', Validators.required] }); } Has anyone had a similar problem? My guess it would be something

How to do auto-complete in ionic 2 (search-bar)

孤街醉人 提交于 2019-12-03 11:54:08
I am trying to do an auto complete in my search bar what i have done so far is. I have an array with some strings. and then i am trying to list in my items it i am able to search the particualr item. But my requirement is not to display the items in a list. I have to make on clicking the search bar all the strings in array should come and the i have to make a search. <ion-header> <ion-navbar> <ion-title>search</ion-title> </ion-navbar> <ion-toolbar primary > <ion-searchbar (ionInput)="getItems($event)" autocorrect="off"></ion-searchbar> </ion-toolbar> </ion-header> <ion-content padding> <ion

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in ionic 3

ぐ巨炮叔叔 提交于 2019-12-03 11:53:07
问题 When I run ionic 3 project using "ionic serve" command than getting this error: 回答1: same issue on centos server 7, but this solved my problem: node --max-old-space-size=X node_modules/@angular/cli/bin/ng build --prod Where X = (2048 or 4096 or 8192 o..) is the value of memory 回答2: Try this solution which was pointed out in an old message on the forum: https://forum.ionicframework.com/t/3-7-0-ios-build-with-prod-not-working/107061/24 Open node_modules/@ionic/app-scripts/bin/ionic-app-scripts

Ionic 3 not updating view

两盒软妹~` 提交于 2019-12-03 10:02:59
Hi I got a function which will update after a http request to the server. It seems that the console.log show that the value has been updated but the UI is not updating unless I click on any other component(ex. input). This is my function: fileTransfer.upload(this.created_image, upload_url, options) .then((data) => { console.log("success:"+data.response); //This is showing correct response var obj = JSON.parse(data.response); this.sv_value = obj.value; console.log(this.sv_value); //This is showing correct value }, (err) => { console.log("failure:"); }) This is my view html: <ion-row> <ion-col

Ionic 3 can't use ion-* components inside my custom components

混江龙づ霸主 提交于 2019-12-03 08:14:30
问题 I have recently upgraded to Ionic 3 from Ionic 2, and I created components.module.ts file and declared and exported each custom component I have, and then imported this single file in every page module I have. So now the problem is that I can't use ion-* components inside my own components, because I did not imported the IonicModule.forRoot(..) inside my components.module. The error is: "Template parse errors: 'ion-spinner' is not a known element ..." What am I doing wrong? 回答1: Alright, so I

Go to root page from a tab

一曲冷凌霜 提交于 2019-12-03 08:06:22
I would like to know how to go back to the rootPage defined in the appComponent when using tabs. The setRoot method is not working as I expected. When it is used in a Tab page the navigation stack is not cleared. On the 'home page', the back button is visible instead of the navigation toggle and the title of the tab is shown. By default, pages are cached and left in the DOM if they are navigated away from but still in the navigation stack (the exiting page on a push() for example). They are destroyed when removed from the navigation stack (on pop() or setRoot()). The statement above gives me

How to efficiently store and use Authentication in Ionic 3

时光怂恿深爱的人放手 提交于 2019-12-03 07:51:14
I'm currently developing an Ionic (3.4) app for iOS/Android. I'm not familiar with authentification processes or with applications. After using HTTP request in a provider, I get my object , the user. But I have absolutely no idea how to store it or to deal with it. What are the good practices: Am I suppose to just store the object in the provider and call in in every single page I have? Am I suppose to store it as a sort of global object in the app? Or am I suppose (as bellow) to transfer it as a Navigation variable from one page to another? (I guess that's not the right answer) And finally,