Linking.canOpenURL(url)
returns false
in a context where Linking.openURL(url)
works
#32311
Labels
API: Linking
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
Linking.canOpenURL(url)
returnsfalse
despite the fact thatLinking.openURL(url)
works.Only on certain android devices, for example OnePlus 9 Pro (Android 11) and Samsung Galaxy S10 (Android 11).
In opposition, it works on a OnePlus 5 (Android 11) and a Samsung Galaxy S9 (Android 11).
React Native version:
0.64.2
Steps To Reproduce
Linking.canOpenURL(url)
false
, remove it and try thenLinking.openURL(url)
(within a try/catch for code safety), it should work.Expected Results
Linking.canOpenURL(url)
should returntrue
in a context whereLinking.openURL(url)
does open the url.Snack, code example, screenshot, or link to a repository:
Commit that we used to fix this issue : pass-culture/pass-culture-app-native@7add481 by removing
Linking.canOpenURL(url)
since we cannot "trust" it.The text was updated successfully, but these errors were encountered: