Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Another InAppBrowser is already being presented #122

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions