ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
611 stars 278 forks source link

hideKeyboardAccessoryBar not working in ionic 3 #312

Open nitinpund opened 6 years ago

nitinpund commented 6 years ago

Hi, I am developing hybrid app using ionic 3 and I want to hide keyboard accessory bar, but its not working at all.

I am using following plugin

  1. ionic cordova plugin add ionic-plugin-keyboard
  2. npm install --save @ionic-native/keyboard

The method mentioned in ionic documentation is not working, what I tried is as below

In app.component.ts file I have added

ngOnInit() {
    this.platform.ready().then(() => {
      this.keyboard.hideKeyboardAccessoryBar(true);
    });
  }

What I am doing wrong? please let me know

My Ionic info is as follows

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.5
Cordova Platforms  : android 7.0.0 browser 5.0.3 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2