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:
- Launch CppTests refresh (force stop beforehand if necessary)
- Select “52: Node: UI” > “1: GUI Dynamic Create Test” > “2:WebView Test”
- Let it load without inputting a URL.
- Tap the web view or tap it’s the edit field (okay this brings up the keyboard which you have to manually close)
- Tap the app’s “Back” button to go back to the previous menu.
- Use the device’s Home button to background the app.
- 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