Closed rmartin48 closed 2 years ago
Why redirectUrl is null? I mean, this parameter is not optional 🤔
I'm asking because that url is required for Android platform as you can see here https://github.com/proyecto26/react-native-inappbrowser/blob/develop/utils.js#L31
I don't know why it's null
, but we encounter the same crashes on iOS 👍🏽
Please create an issue related to this PR and attach a reproducible demo to understand better your scenario 👍
Thanks for your contribution mate! <3
PR Checklist
What is the current behavior?
On iOS, calling
openAuth
with undefined/null forredirectUrl
will crash the app. This issue was recently introduced in this commit where the scheme is being extracted from the redirect url. The result is thatescapedRedirectURL = "<null>"
which is not a valid URL scheme.What is the new behavior?
Don't attempt to extract the scheme from
redirectUrl
if it is undefined. Simply pass innil
which will be handled gracefully.