react-native-keycloak icon indicating copy to clipboard operation
react-native-keycloak copied to clipboard

Another InAppBrowser is already being presented

Open stereodenis opened this issue 2 years ago • 0 comments
trafficstars

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

stereodenis avatar Mar 28 '23 16:03 stereodenis