Please provide the following:
- SDK Version:40
- Platforms(Android/iOS/web/all):android
- Add the appropriate “Tag” based on what Expo library you have a question on.
The Linking.getInitialURL() is working correctly but once my app is opened in background, if I click on a link which redirect to my custom scheme my app will open but the Linking.listener will not trigger.
componentWillMount() {
Linking.getInitialURL().then((url) => {
if (url) {
this.handleUrl(url);
}
});
Linking.addEventListener(‘url’, this.handleUrl);
}
componentWillUnmount() {
Linking.removeEventListener('url', this.handleUrl);
}
handleUrl = (url) => {
alert('url is : '+url);
};
Please help.