I am trying to do the most basic retrieval with Ionic and AngularFireDatabase. My code is as follows:
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { SignInPage } from '../signin/signin';
import { FeedUser } from '../feeduser/feeduser';
import { FeedStylist } from '../feedstylist/feedstylist';
import { Keyboard } from '@ionic-native/keyboard';
import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
@Component({
selector: 'page-sign-up',
templateUrl: 'signup.html'
})
export class SignUpPage {
stylist: boolean;
user: boolean;
items: FirebaseListObservable<any>;
constructor(public navCtrl: NavController, public keyboard: Keyboard, public af: AngularFireDatabase) {
this.items = af.list('/test');
console.log(this.items);
}
...
There are no errors, but nothing happens - the console message is never logged...not even null (if its not retrieving the items).
I am using Ionic 3.5.0, and iOS 10. This problem only happens on iOS device, it works in the browser. Thanks
constructorofSignUpPageis never runned based onthe console message is never logged. you should confirm whether your routing is working.