react-native-deep-linking
react-native-deep-linking copied to clipboard
Not working when the app closed [Android]
Hi,
How can I make this work while the app closed?
I've implement this and it's working when the app in foreground / background, but it's not working when the app closed. The listener only working when the app in foreground/background.
Really need help.
Thanks
Hi, how are you triggering the deep link? is it a push notification?
Add below code is ok:
componentDidMount() { Linking.getInitialURL().then((url) => { if (url) { console.log('Initial url is: ' + url); } }).catch(err => console.error('An error occurred', err)); }