react-native-inappbrowser
react-native-inappbrowser copied to clipboard
Android openAuth method cancels browser on deep link redirection #239
Facing same issue as #239 . Reopening it.
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,
});
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,
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)
@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?
Did anyone solve this?