Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another InAppBrowser is already being presented #122

Open
stereodenis opened this issue Mar 28, 2023 · 0 comments
Open

Another InAppBrowser is already being presented #122

stereodenis opened this issue Mar 28, 2023 · 0 comments

Comments

@stereodenis
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant