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

Android openAuth method cancels browser on deep link redirection #239

Open nateshmbhat opened this issue 2 years ago • 5 comments

Facing same issue as #239 . Reopening it.

nateshmbhat avatar Jan 17 '23 15:01 nateshmbhat

For some reason this simply fixes it for me:

// This fixed it for me
await new Promise(r => setTimeout(r, 1000));

const res = await InAppBrowser.openAuth(url, '', {
  ephemeralWebSession: false,
  showTitle: false,
  enableUrlBarHiding: true,
  enableDefaultShare: false,
});

martintanbit avatar Mar 22 '23 09:03 martintanbit

For some reason this simply fixes it for me:

// This fixed it for me
await new Promise(r => setTimeout(r, 1000));

const res = await InAppBrowser.openAuth(url, '', {
  ephemeralWebSession: false,
  showTitle: false,
  enableUrlBarHiding: true,
  enableDefaultShare: false,
});

Tried, didn't work

I'm using the following config :

 {
        // iOS Properties
        ephemeralWebSession: false,
        // Android Properties
        showTitle: false,
        enableUrlBarHiding: true,
        enableDefaultShare: false,
        animated: true,
        showInRecents: true,
        /**
         * Keeping this as "true" is important.
         * This is a fix for : SGAPP-5404
         */
        forceCloseOnRedirection: true,
        hasBackButton: true,
      

nateshmbhat avatar Mar 22 '23 11:03 nateshmbhat

just to clarify, it fixed the issue for me in iOS - I didn't encounter this issue on Android (the issue happens on iOS only, for some reason)

martintanbit avatar Mar 22 '23 11:03 martintanbit

@nateshmbhat did you have any luck with this? We are now experiencing this too... If you figured it out could you please post the solution?

harveyconnor avatar Apr 19 '23 07:04 harveyconnor

Did anyone solve this?

krini avatar Jan 04 '24 09:01 krini