Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

hideKeyboardAccessoryBar not working in ionic 3 #312

Open
@nitinpund

Description

@nitinpund

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions