Skip to content

iOS: iosCustomBrowser fails to open Chrome or any browser on iOS 18+ #1034

@djopet00

Description

@djopet00

Issue

On iOS 18+, Chrome and other browsers can no longer be opened using the iosCustomBrowser property from within the React Native application.

Previously, setting iosCustomBrowser to any browser (e.g., 'chrome', 'safari', 'opera', 'firefox') worked without issues on iOS 17 and earlier versions.

Is there a workaround or fix for this issue?
Lots of users are facing the same problem.


Environment

  • Identity Provider: Duende Identity Server (OpenID Connect and OAuth 2.0)
  • Platform: iOS
  • React Native Version: 0.76.1
  • react-native-app-auth Version: 8.0.0
  • Using Expo: No

Additional Details

  • macOS: 14.5
  • Xcode: 16.0
  • Node: v18.18.2
  • Yarn: v1.22.21
  • NOTE: Works on iOS 17 and earlier but not on iOS 18+

Xcode Console Message:

BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(:) needs to migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).


Steps to Reproduce

  1. Set iosCustomBrowser: 'chrome' (or any other supported browser, such as 'safari', 'opera', 'firefox') using react-native-app-auth package.
  2. Run the app on a device or simulator with iOS 18 or later.
  3. Attempt to initiate an authentication flow that opens the specified browser.
  4. Browser does not open, and the Xcode console logs the message mentioned above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions