facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.7k stars 24.16k forks source link

Linking.openURL ignores other link handlers #36984

Closed skinnynpale closed 9 months ago

skinnynpale commented 1 year ago

Description

Linking.openURL ignores other link handlers like onelink - appsflyer, dynamic links - firebase that are called in openURL function from AppDelegate.

how to do it right: Linking.openURL should work the same as if a person just tapped on the link

React Native Version

0.71.0

Output of npx react-native info

System: OS: macOS 13.3.1 CPU: (8) arm64 Apple M1 Memory: 105.81 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm Watchman: 2022.10.31.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /Users/skinnynpale/.rvm/gems/ruby-3.0.0/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: API Levels: 21, 23, 27, 28, 29, 30, 31, 33 Build Tools: 28.0.3, 30.0.1, 30.0.3, 31.0.0 System Images: android-29 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64, android-31 | Google Play ARM 64 v8a, android-S | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.3/14E222b - /usr/bin/xcodebuild Languages: Java: 15.0.6 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.6 => 0.70.6 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

we have test.onelink.me, if you simply open it from your phone by tapping on the link, then everything will open correctly, but if you open it with Linking.openURL, it will open the browser and then the appstore.

Snack, code example, screenshot, or link to a repository


github-actions[bot] commented 1 year ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
github-actions[bot] commented 10 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 9 months ago

This issue was closed because it has been stalled for 7 days with no activity.