Unable to focus input at very first time in ionic

This is my sample login screen code

`

<img src="assets/icon/tetra.png"   style="width: 47px;height: 35px;"  class="logo-cs" />  
ID Username Password
Login

`

It is not focusing on the input field when I tapped on the input field
after some time it was tapping and showing keyboard

below is my login.ts code

ionViewLoaded() {

    setTimeout(() => {
     // Keyboard.show();
       // for android
      this.userid_ip.setFocus();
      this.uname_ip.setFocus();
      this.password_ip.setFocus();    
    },150); //a least 150ms.

   
  }