iOS 14.5 invalid redirect schema
See original GitHub issueDescribe the bug
Trying to log in using a iOS 14.5 device throws the following exception and crashes the app.
My options look like:
initOptions={{
redirectUri: 'myapp://home',
inAppBrowserOptions: {
modalPresentationStyle: 'fullScreen',
enableBarCollapsing: false,
modalEnabled: true,
ephemeralWebSession: true,
dismissButtonStyle: 'ok',
},
}}
Everything works fine on iOS 14.4 or below.
To Reproduce
- Boot a new RN app
- have a button with an onPress event triggering
await keycloak?.login(); - Error appears on the red screen
Expected behaviour
To be able to open the browser with no error.
Screenshots

Smartphone
- Device: any
- OS: iOS
- Version: strictly on 14.5
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
ASWebAuthenticationSession's callbackURLScheme crash
We have started seeing crash with iOS 14.5 for ASWebAuthenticationSession's callbackURLScheme. ... AuthenticationSession] The provided scheme is not valid.
Read more >How to redirect to iOS when custom URI Scheme not ...
I'm trying to use a REST API for my iOS application, however, I've noticed that many sites won't allow a app-specific URL scheme...
Read more >iOS Redirect is Not Working and I Have Universal Links Enabled
There is a known universal bug for Apple where devices for iOS version 11.x+ , the AASA files do not get fetched and...
Read more >Sign users in to your mobile app using the redirect model
In this section you create a sample mobile app and add redirect authentication using your new Okta app integration. Create a new project....
Read more >Use redirect URIs with MSAL (iOS/macOS) - Microsoft Entra
If you want to use universal links as a redirect URI, the <scheme> must be https and doesn't need to be declared in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You are welcome and thank you again.
Actually I am using the patched code (with
package-patch) with current RNK lib and projects, when they will release the new fixed version I will update the lib.Hi @dani-z for sure within the next days, at least for this sunday evening