Not working when the app closed [Android]
addingama opened this issue · 2 comments
addingama commented
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
luisfcofv commented
Hi, how are you triggering the deep link? is it a push notification?
vutuananh commented
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));
}