You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up deep links following the step here https://docs.expo.io/workflow/linking/#deep-links-on-android (I am sure that my deep links are set up correctly because when the app is already opened, and I opened a link, Linking.addEventListener("url", shows the correct URL on Android).
Add a button that alerts 锘匡豢await Linking.getInitialURL() when on click (with import * as Linking from "expo-linking";).
Build the app and install it on Android.
Fully exit the app.
Click a link (deep links) that opens the app.
Click the button.
Expected Behavior vs Actual Behavior
Expected Behavior: On both Android and iOS, 锘匡豢await Linking.getInitialURL() returns the link from which I opened the app.
Actual Behavior: It works correctly on iOS (锘匡豢await Linking.getInitialURL() returns the correct URL from which I opened the app. Additionally, it returns https://expo.io:443/... when I opened the app directly). But on Android, 锘匡豢await Linking.getInitialURL() always returns null no matter how I opened the app.
(I'm not 100% sure, but I think 锘匡豢await Linking.getInitialURL() worked on Android before I upgrade from SDK 38 to SDK 39 and built a new binary.)
This might be related to #8408. However, that issue states that
馃悰 Bug Report
Summary of Issue
await Linking.getInitialUrl()
always returnsnull
on Android.Environment - output of
expo diagnostics
& the platform(s) you're targetingReproducible Demo
Steps to Reproduce
Linking.addEventListener("url",
shows the correct URL on Android).alert
s锘匡豢await Linking.getInitialURL()
when on click (withimport * as Linking from "expo-linking";
).Expected Behavior vs Actual Behavior
Expected Behavior: On both Android and iOS,
锘匡豢await Linking.getInitialURL()
returns the link from which I opened the app.Actual Behavior: It works correctly on iOS (
锘匡豢await Linking.getInitialURL()
returns the correct URL from which I opened the app. Additionally, it returnshttps://expo.io:443/...
when I opened the app directly). But on Android,锘匡豢await Linking.getInitialURL()
always returnsnull
no matter how I opened the app.(I'm not 100% sure, but I think
锘匡豢await Linking.getInitialURL()
worked on Android before I upgrade from SDK 38 to SDK 39 and built a new binary.)This might be related to #8408. However, that issue states that
However, I am using the managed workflow but the value is
null
.The text was updated successfully, but these errors were encountered: