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.