Keep keyboard hidden by default

Welcome! Forums Unity Plugins In-App Web Browser Keep keyboard hidden by default

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #272
    jilvar
    Participant

    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?

    #273
    PiotrPiotr
    Keymaster

    It might be caused by your AndroidManifest.xml file. Did you set anything there related to keyboard (like android:windowSoftInputMode?

    #274
    jilvar
    Participant

    I’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.

    #283
    jilvar
    Participant

    Is there a way to fix this?

    #286
    PiotrPiotr
    Keymaster

    I cannot reproduce it. Is it happening on “plain” websites without any text fields?
    I’ve tried it on HTC One with Android 7.

    #991
    mart
    Participant

    i 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

    http://prntscr.com/j7c1hy

    #992
    mart
    Participant

    is there any chance to fix that?

    #994
    PiotrPiotr
    Keymaster

    @mart are you using custom AndroidManifest file?

    #997
    mart
    Participant

    No. 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>
    
    #998
    PiotrPiotr
    Keymaster

    Do you see it happening on every device or only on some specific ones?

    #999
    mart
    Participant

    For 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 Nexus

    I will give you an update in a few minutes.

    • This reply was modified 6 years ago by mart.
    #1003
    PiotrPiotr
    Keymaster

    I could have guessed it’s Samsung 😉

    #1004
    mart
    Participant

    I 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-javascript

    #11551
    jack0325
    Participant

    I have the same problem
    My device is Asus Zenpad 8.0 (os7.0)
    Video link

    In-App Web Browser version 2.0.3

    #11571
    PiotrPiotr
    Keymaster

    jack0325, it seems to be Android bug – could you try workaround sent by mart?

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.