-
-
Notifications
You must be signed in to change notification settings - Fork 237
Fix invalid scheme with iOS 14.5 #262
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
Fix invalid scheme with iOS 14.5 #262
Conversation
Hello mate, thanks for your collaboration Do you know if this change is a breaking change for old versions of iOS? :) |
Hi, |
I just researched the iOS version requirement for react native: iOS 7.0+ is required since 0.14.0 which came out 2015 (source facebook/react-native@e2841c0). So I would say that this is pretty safe |
Awesome, thanks for letting me know! @maoapp is going to help us with a new release including these changes <3 |
@jdnichollsc why isn't this merged yet |
I'm busy, maybe @maoapp too 🙂 |
Similar issue resolved here https://github.com/auth0/react-native-auth0/pull/369/files, this was a breaking change with iOS 14.5 |
Let me gently poke you one more time (: |
Any chance of this getting merged soon? |
I think using |
@SimonIT what do you think? 🙂 |
If it works, why not. I personally don't see the benefit of it |
Just tried it myself, seem to work fine |
The api expects only the scheme part of the URL so I think it is better to do that instead of encoding the slashes to bypass the validation check. |
Agree! Please let me know folks <3 |
I actually don't know and I can't try it, because I'm not directly using this lib. Another lib I'm using is using this lib. That's why this fix is so important for me. |
If someone has a direct dependency and needs this fix, you can do the following: Change the dependency to the commit hash (package.json). |
Any updates on getting this merged? |
Yep, |
+1 |
I'm going to publish this change today, thanks folks! <3 |
I'm getting this error on 3.6.3 Update- I think what happened there was that as part of testing the app with or without the browser and different versions a pod install might have been missed But after removing InnAppBrowser from package.json, yarn install, pod install, add back to package.json, yarn install, pod install, react-native run-ios Still getting the same error Update- Looks like one final run-ios sorted it out. Odd but it seems to be working now |
PR Checklist
What is the current behavior?
Exception with invalid scheme is thrown
What is the new behavior?
The scheme will be escaped by default
Fixes/Implements/Closes #256
I tried testing this change with the example but there occurred just more errors. I fixed the flipper and babbel one and then gave up.
I hope everything will work. I'm not very familiar with iOS so don't bash me if I made something wrong. I just need the fix.