Welcome! › Forums › Unity Plugins › In-App Web Browser › Keep keyboard hidden by default
- This topic has 14 replies, 4 voices, and was last updated 3 years, 10 months ago by Piotr.
-
AuthorPosts
-
July 13, 2017 at 10:30 am #272jilvarParticipant
It seems the virtual keyboard on Android always pops up when calling In-App Web Browser.
Is there a way to keep it hidden by default?July 13, 2017 at 10:32 am #273PiotrKeymasterIt might be caused by your
AndroidManifest.xml
file. Did you set anything there related to keyboard (likeandroid:windowSoftInputMode
?July 13, 2017 at 11:06 am #274jilvarParticipantI’ve created a clean project and tested the provided example (open google.com) scene.
The keyboard still pops up when loading the google page.
Also I don’t see android:windowSoftInputMode in the AndroidManifest.xml.July 14, 2017 at 3:40 pm #283jilvarParticipantIs there a way to fix this?
July 16, 2017 at 7:07 am #286PiotrKeymasterI cannot reproduce it. Is it happening on “plain” websites without any text fields?
I’ve tried it on HTC One with Android 7.April 19, 2018 at 12:01 pm #991martParticipanti ran into the same issue.The keyboard opens even on plain html pages without any content. You can reproduce it on samung devices. E.g. Galaxy Tab A
April 19, 2018 at 1:27 pm #992martParticipantis there any chance to fix that?
April 19, 2018 at 6:07 pm #994April 20, 2018 at 7:44 am #997martParticipantNo. I use the default Android Manifest provided by Unity.
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/> <application android:theme="@style/UnityThemeSelector" android:icon="@drawable/app_icon" android:label="@string/app_name"> <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <meta-data android:name="unityplayer.UnityActivity" android:value="true" /> </activity> </application> </manifest>
April 20, 2018 at 7:48 am #998PiotrKeymasterDo you see it happening on every device or only on some specific ones?
April 20, 2018 at 8:02 am #999martParticipantFor now i could reproduce it only on samsung devices. I think it is a problem with the Webview implementation on Samsung Devices.
I am doing a test right now with following Devices.
Galaxy Tab A
Galaxy Tab 3
Galaxy Tab 4
Asus NexusI will give you an update in a few minutes.
- This reply was modified 6 years, 4 months ago by mart.
April 20, 2018 at 9:34 am #1003PiotrKeymasterI could have guessed it’s Samsung 😉
April 20, 2018 at 11:40 am #1004martParticipantI can reproduce it only on Samsung’s Galaxy Tab A with Andorid 7.1.1
and i tested several Tablets and Smartphones on Android and ios.
I am not sure if this is a Android 7.x.x Problem.The only solution i found ist this:
https://stackoverflow.com/questions/8335834/how-can-i-hide-the-android-keyboard-using-javascriptNovember 12, 2020 at 4:10 pm #11551jack0325ParticipantI have the same problem
My device is Asus Zenpad 8.0 (os7.0)
Video linkIn-App Web Browser version 2.0.3
November 15, 2020 at 1:51 pm #11571PiotrKeymasterjack0325, it seems to be Android bug – could you try workaround sent by mart?
-
AuthorPosts
- You must be logged in to reply to this topic.