Deep linking is not working on android when the app is on background or foreground state, but if it's closed it works perfectly fine. Only in android but in iOS it works both even if it's in background or closed app state.
I have these methods, but it doesn't work on android when it's on background or foreground
1. Linking.addEventListener('url', callback)
2. Linking.getInitialURL -- it returns a Promise that resolves to the url, if there is one.