react-native-deep-linking icon indicating copy to clipboard operation
react-native-deep-linking copied to clipboard

Not working when the app closed [Android]

Open addingama opened this issue 6 years ago • 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

addingama avatar May 31 '18 02:05 addingama

Hi, how are you triggering the deep link? is it a push notification?

luisfcofv avatar Jun 26 '18 21:06 luisfcofv

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

vutuananh avatar May 27 '19 08:05 vutuananh