Skip to content

Another InAppBrowser is already being presented #122

@stereodenis

Description

@stereodenis

Describe the bug
I've got:

WARN  Possible Unhandled Promise Rejection (id: 1):
Error: Another InAppBrowser is already being presented.

To Reproduce

<ReactNativeKeycloakProvider
          authClient={keycloak}
          autoRefreshToken
          onTokens={handleTokens}
          onEvent={handleEvent}
          isLoadingCheck={() => isLoadingCheck}
          LoadingComponent={
            <View style={styles.loader}>
              <SpinnerLoader />
            </View>
          }
          initOptions={{
            redirectUri: "my-redirect-uri",
            onLoad: "check-sso",
            enableLogging: ENV.BUILD === BUILDS.development || __DEV__,
            ...tokens,
            inAppBrowserOptions: {
              enableDefaultShare: false,
              showTitle: false,
              hasBackButton: true,
              // https://github.com/proyecto26/react-native-inappbrowser/issues/153
              forceCloseOnRedirection: false,
              showInRecents: true,
            },
          }}
        >
            <App />
        </ReactNativeKeycloakProvider>

Expected behavior
No warning or possibility to handle

Smartphone

  • Device: iPhone 12
  • OS: iOS 14.5

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