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

Android openAuth method cancels browser on deep link redirection #239 #396

Open
nateshmbhat opened this issue Jan 17, 2023 · 5 comments
Open

Comments

@nateshmbhat
Copy link

Facing same issue as #239 . Reopening it.

@martintanbit
Copy link

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,
});

@nateshmbhat
Copy link
Author

nateshmbhat commented Mar 22, 2023

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,
      

@martintanbit
Copy link

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)

@harveyconnor
Copy link

harveyconnor commented Apr 19, 2023

@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?

@krini
Copy link

krini commented Jan 4, 2024

Did anyone solve this?

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

4 participants