Please provide the following:
- SDK Version: 37
- Platforms(Android/iOS/web/all): Android
When I cold open the Expo Client using a deeplink like :
exp://10.0.0.240:19000/--/test/?key=val
Linking.getInitialURL() returns exp://10.0.0.240:19000
and Linking.parse(url) returns
{
hostname: 10.0.0.240,
path: null,
queryParams: {},
scheme: exp
}
EXPECTED BEHAVIOR:
Linking.getInitialURL() should return the full URL, with the path and queryParams exp://10.0.0.240:19000/--/test/?key=val
)
and Linking.parse(url) should return
{
hostname; 10.0.0.240:19000,
path: test,
queryParams: { key: val },
scheme: exp
}
I have tried several different variations of the link, inserting/removing ‘/’ in different spots, and I have read just about every StackOverflow and Expo Forums post having anything to do with this function.
The worst part is it worked earlier, then I took lunch, and when I came back, with no changes at all, it didn’t work anymore.
CODE:
App.jsx
async componentDidMount() {
await this.checkForUpdates();
const url = await Linking.getInitialURL();
const { path, queryParams } = Linking.parse(url);
// Path is null and queryParams is empty
}
...
<AppContainer
uriPrefix={prefix}
linking={{prefixes: [prefix]}}
fallback={<Text>Loading...</Text>}
/>
App.json
"expo" : {
...
"scheme" : "myScheme"
}