WebView closes on drawing SystemBar in Immersive Mode

Welcome! Forums Unity Plugins In-App Web Browser WebView closes on drawing SystemBar in Immersive Mode

This topic contains 6 replies, has 3 voices, and was last updated by Piotr Piotr 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1547

    abhishek_craftwoeks
    Participant

    Hi,
    my app is in immersive mode and opens IAB in the first scene only.
    As soon as I try to draw down the system bar ( notification bar) on android, the web view gets closed.
    PLease help.

    #1548
    Piotr
    Piotr
    Keymaster

    Hi,
    Sorry but I don’t understand what do you mean.
    Could you provide code you are using?

    #1552

    abhishek_craftwoeks
    Participant

    Hi, thanks for replying.
    I am using simple OpenURL method to open a web view. now, Once I try to pull down status bar in android, the web view losses focus and automatically closes. I am running my app in full screen mode.

    #1553

    abhishek_craftwoeks
    Participant

    Here is a gif flow

    View post on imgur.com

    #1600

    mattia.sangiorgio
    Participant

    I have the same issue. Is it solved for you?

    #1608

    mattia.sangiorgio
    Participant

    I tried to log while I purposely caused the issue:

    07-09 16:47:12.354  9458  9458 I Unity   : windowFocusChanged: false
    07-09 16:47:17.221  9458  9555 I Unity   : InAppBrowser: Closed
    07-09 16:47:17.221  9458  9555 I Unity   : UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    07-09 16:47:17.221  9458  9555 I Unity   : UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    07-09 16:47:17.221  9458  9555 I Unity   : UnityEngine.Logger:Log(LogType, Object)
    07-09 16:47:17.221  9458  9555 I Unity   : UnityEngine.Debug:Log(Object)
    07-09 16:47:17.221  9458  9555 I Unity   : InAppBrowserBridge:OnBrowserClosed() (at C:\Users\*******\Documents\App\Assets\InAppBrowser\Scripts\InAppBrowserBridge.cs:53)

    The browser closing itself in the same way like press back button.
    I tried to disable the back button but it still doesn’t work.

    Are there any other way to deeply inspect this issue?

    Thank you in advance.

    #1615
    Piotr
    Piotr
    Keymaster

    Hi,

    My guess is your device is killing Unity’s activity. Since plugin works as a popup on top of a current activity it got dismissed.

    Maybe you could try to prevent from activity being destroyed on config change?

    Something like here: https://stackoverflow.com/questions/3329318/android-how-to-not-destroy-the-activity-when-i-rotate-the-device

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.