Keyboard issues with Ionic4

I have developed an android application using Ionic4. The issue I am facing is when the keyboard appears it covers the Input field, screen is not moving up. I have solved this issue in Ionic 3 by the following lines of code. But this does not works in Ionic4. Somebody please help.

imports: [
    IonicModule.forRoot(MyApp, {
    scrollAssist: true,
    autoFocusAssist: true


<div class="field-container">
    <form [formGroup]="credentialsForm" class="width-100">
            <ion-item no-padding class="transparent-border">
                <div class="logo-div">
                    <img src="assets/icon/favicon.png" class="app-logo">
            <ion-item no-padding>
                <ion-label position="floating" color="primary">Username</ion-label>
                <ion-input type="text" color="primary" mode="ios" maxLength="5" formControlName="userName" required></ion-input>
            <span class="validation-errors" *ngIf="!credentialsForm.controls.userName.valid && (credentialsForm.controls.userName.dirty || onSaveAttempt)">Username
                is mandatory</span>
            <ion-item no-padding>
                <ion-label position="floating" color="primary">Password</ion-label>
                <ion-input color="primary" type="password" mode="ios" formControlName="password" required></ion-input>
            <span class="validation-errors" *ngIf="!credentialsForm.controls.password.valid && (credentialsForm.controls.password.dirty || onSaveAttempt)">Password
                is mandatory</span>
            <ion-item no-padding class="transparent-border">
                <div style="overflow: hidden;width: 100%">
                    <p class="create-account" (click)="doRegistrationNavigation()">Create an Account</p>
                    <p class="forgot-password">Forgot password?</p>
    <ion-button (click)="doLogin()" expand="block" shape="round" class="signin-button" color="vibrant">Sign

Any help is appreciated
Thanks and Regards
Anand Raj

Hello @anandraj1411 !
I was facing a similar problem if not the same which i managed to fix using a work around.
Here’s how i fixed it

I hope it helps.

Thanks for the quick reply.
But I dont think it is proper solution for an application having 10+ screens.

Totally agree. I had to do this for a growing app which had 3 screens with inputs.
Like you im still waiting for an official answer on this issue.
Lets hope it gets fixed asap

I think we should stick on Ionic3 as it already proved