Example #1
0
 private onCordovaReady() {
   if (window['cordova']) {
     this.keyboard.hideKeyboardAccessoryBar(true);
     this.statusBar.styleDefault();
     this.splashScreen.hide();
   }
 }
  sendMessage(message: string) {
    LogService.logMessage("BoardItemPage sendMessage " + this.chat.$key + " ", message);
    this.data.saveMessage("board_messages", this.chat.$key, message, null, () => {
      LogService.logMessage("BoardItemPage sendMessage success saved");
      this.message = '';
    }, false);
    this.keyboard.close();

  }
Example #3
0
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();
      if(platform.is('ios')) {
        this.keyboard.disableScroll(true);
      }

      /*const authObserver = */afAuth.authState.subscribe( user => {
        if(user) {
          console.log('app',user);
          this.auth.setUserProfile(user);
          this.rootPage = TabsPage;
          //authObserver.unsubscribe();
        }else {
          this.rootPage = LoginPage;
          //authObserver.unsubscribe();
        }
      });
    });
 clickOk(cb: Channel) {
   this.homeData.setChannel(cb);
   setTimeout(this.updateData(),200);
   this.keyboard.close();
 }
Example #5
0
 private searchbarFocus(): void {
   this.keyboard.show();
   this.searchbar.setFocus();
 }
 public ngOnInit() {
   if (this.platform.is('cordova') && this.platform.is('ios')) {
     this.onShowSubscription = this.keyboard.onKeyboardShow().subscribe(e => this.onShow(e));
     this.onHideSubscription = this.keyboard.onKeyboardHide().subscribe(() => this.onHide());
   }
 }