Skip to content

iOS 14.5 invalid redirect schema #38

@dani-z

Description

@dani-z

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions