[Ionic 4] Keyboard problems

Got two problems with the Keyboard:

  1. On Android (haven’t been able to test iOS yet) the keyboard moves the background. I have a background image set and it pushes the whole thing up.

  2. I use import {Keyboard} from '@ionic-native/keyboard'; and try to add it to providers but get the error: Type 'KeyboardOriginal' is not assignable to type 'Provider'

I solved that problem.

Plese use this method.

ionic cordova plugin add cordova-plugin-ionic-keyboard
npm install --save @ionic-native/keyboard@beta

import { Keyboard } from ‘@ionic-native/keyboard/ngx’;