Skip to content

Setting ios webview to full screen silences websocket connection #57

@emiranda-hsi

Description

@emiranda-hsi

My capacitor application has an activve webscoket receiving events. Once I open the inappBrowser in ios with the view style to full screen., my websocket connection is completely black boxed. I stop receiving events entirely. Only happens when on full screen.

await InAppBrowser.openInWebView({
      url,
      options: {
        showToolbar: false,
        showURL: false,
        clearCache: false,
        clearSessionCache: false,
        mediaPlaybackRequiresUserAction: false,
        closeButtonText: '',
        toolbarPosition: ToolbarPosition.TOP,
        showNavigationButtons: false,
        leftToRight: false,
        android: {
          allowZoom: false,
          hardwareBack: false,
          pauseMedia: false,
        },
        iOS: {
          allowOverScroll: true,
          enableViewportScale: true,
          allowInLineMediaPlayback: false,
          surpressIncrementalRendering: false,
          viewStyle: iOSViewStyle.FULL_SCREEN,
          animationEffect: iOSAnimation.FLIP_HORIZONTAL,
        },
      },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions