luisfcofv/react-native-deep-linking

Not working when the app closed [Android]

addingama opened this issue · 2 comments

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));
}