Keyboard occasionally appearing after using web view on Android

I have noticed an issue on Android (specifically a Samsung Galaxy Tab 3) and have been able to recreate it using CppTests from v.3.9. After using a web view, when the app returns from background, occasionally the keyboard will pop up even though the web view is no longer visible. I am not able to get it to consistently happen, but it happens frequently enough that I felt it should be brought to your attention.

Here are the steps that sometime make it happen:

  1. Launch CppTests refresh (force stop beforehand if necessary)
  2. Select “52: Node: UI” > “1: GUI Dynamic Create Test” > “2:WebView Test”
  3. Let it load without inputting a URL.
  4. Tap the web view or tap it’s the edit field (okay this brings up the keyboard which you have to manually close)
  5. Tap the app’s “Back” button to go back to the previous menu.
  6. Use the device’s Home button to background the app.
  7. Re-open the app from background and the keyboard should/might popup.

Related issues: going back to WebView Test and sometimes the web view does not load, or the volume buttons no longer affect the device’s volume.

I am not sure if it is the same issue as the attached post, but I figured I would include it here for reference.

[UPDATE:] I verified this is still an issue with Cocos 3.10, and on a Nexus 7 running Android 5.1.1. I opened a github issue at: Android keyboard appears when returning from background after scene with web view is removed · Issue #14972 · cocos2d/cocos2d-x · GitHub

[UPDATE #2] I commented out the text entry field in the WebView test and the bug still happens, so it’s not that the other native element is grabbing the focus, it really seems like the web view is not being disclosed of properly.

FYI, it is this type of bug and lack of response to it that is pushing me and other devs to explore other game engines.

@hawkwood
Thanks for reporting this bug, I will take time to reproduce it and fix it in the next release cycle.

It saddens me that this bug has not been fixed yet, and has been removed from the roadmap to be fixed.