Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native Linking URL returns null during iOS app launch

$
0
0

I am unable to handle Linking url in iOS app when app launches. I am getting url null at the time of iOS app launch. Working properly when app is already running. Below is the code I am using for the same. I added getInitialURL() and addEventListner() both as some online source suggested to that getInitialURL() works during app launch. Please help solving the issue. I use the following versions:

"react": "16.8.3", "react-native": "0.59.8",

Linking.getInitialURL().then((event) => {
            if (event) {
                Logger.log("Url from getInitialUrl" + event)
            }
        }).catch(err => {
            console.warn('An error occurred', err);
        });

        Linking.addEventListener('url', (event) => {
            console.log("Add Event Listener" + event)
        });

I have followed official doc enter link description here for iOS Lining integration.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>