Expo React-native: Deep Linking Is Not Working On Android
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
Solution 1:
Finally I figured it out, Linking.addEventListener('url', callback)
returns and event, to get the url it should be event.url
, what I did before is Linking.addEventListener('url',(url) => setLink(url))
which must be Linking.addEventListener('url',({ url }) => setLink(url))
.
Post a Comment for "Expo React-native: Deep Linking Is Not Working On Android"