Keyboard broken on web app on Android devices

113 Views Asked by At

When focus on input, the keyboard should be opened unless I tap somewhere out of input field and keyboard. It works fine on iOS, but on Android the keyboard disappears after every focus. Also, when I scroll, the keyboard disappears. But on ios everything is ok. What should I do? Web app used Framework7

1

There are 1 best solutions below

2
On

When using cordova on Android, I advise you to install crosswalk webview to achieve a consistent look and feel on all devices. I have had weird application behavior in the past when developing applications using ionic 2 (uses cordova). I solved them by installing crosswalk-lite.

According to crosswalk's github page:

Benefits

  • WebView doesn't change depending on Android version
  • Capabilities: such as WebRTC, WebAudio, Web Components
  • Performance improvements (compared to older system webviews)

Drawbacks

  • Increased memory footprint
  • An overhead of ~30MB (as reported by the RSS column of ps) Increased APK size (about 17MB) Increased size on disk when installed (about 50MB)

Install it using the following command: cordova plugin add cordova-plugin-crosswalk-webview

Note: Crosswalk Lite is approximately half the size of regular Crosswalk

Crosswalk WebView Cordova Plugin

Crosswalk Lite