Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone found a workaround for the Cordova Android keyboard bug?

I have built 2 separate apps using Cordova 6.3.1, and I've noticed a strange bug with the keyboard. The following has only been tested on two separate Samsung Galaxy S6 phones running Android 6.0.1. It only occurs on WebApps, not web pages.

In any text input or textarea, typing a special character will automatically replace the next non-special character typed with the same special character:

1) Type a special character (e.g. *)

2) Type any other non-special character (e.g. a)

3) This character is automatically replaced with the preceding special character (e.g. *a -> **)

I've also noticed that if I type a non-special character followed by a special character, then delete the special character, then type another non-special character. This last non-special character is replaced with the first non-special character.

Crazier things happen if you type a long string of non-special characters ending with a special character and then try this delete some number of times and type a non-special character. I haven't been able to find the pattern though.

Has anyone else experienced this? Is there a workaround? Does this happen on other phones and OSs?

Thanks for your help!

UPDATE:

I tested this on a Samsung Galaxy S4 mini running Android 4.4.2, and it did NOT exhibit the bug.

like image 487
David Kleiman Avatar asked Nov 02 '16 19:11

David Kleiman


People also ask

Is cordova still maintained?

Apache Cordova Is Retired: Alternatives for Cross Platform Mobile Development in 2022. Future trends of cross-platform mobile development are already starting to emerge, and it appears that Apache Cordova won't be included in the list of frameworks that power hybrid web apps for mobile devices.

Does cordova support android 12?

We have integrated the Android 12 SplashScreen API including the compatibility library into the core of the Cordova-Android platform to provide support for Android API 22+. For more information, please refer to the PR and Cordova Docs.


1 Answers

It is a bug on Chrome WebView, it seems to be fixed days ago. You can check the cordova bug report thread.

like image 145
MaicolBen Avatar answered Oct 13 '22 00:10

MaicolBen