question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 14.5 invalid redirect schema

See original GitHub issue

Describe 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

  1. Boot a new RN app
  2. have a button with an onPress event triggering await keycloak?.login();
  3. Error appears on the red screen

Expected behaviour

To be able to open the browser with no error.

Screenshots

image

Smartphone

  • Device: any
  • OS: iOS
  • Version: strictly on 14.5

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
IronTonycommented, Apr 30, 2021

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.

0reactions
IronTonycommented, Jun 29, 2021

Hi @dani-z for sure within the next days, at least for this sunday evening

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found