avioli / uni_links

Flutter plugin for accepting incoming links.
BSD 2-Clause "Simplified" License
563 stars 303 forks source link

AppLink not work when link opened in the conditions apps not opened #109

Open yusriltakeuchi opened 3 years ago

yusriltakeuchi commented 3 years ago

I'm have an issue when i open the link.

When i click the link in the conditions apps already opened, the applink successfully and open the detail item screen.

But when the apps is not opened then i click the link, after that the application open but the function getInitialUri is not return anything, so my apps is not routing into detail item screen.

When i check in the console, there is nothing error found.

Can you give me solutions for this?

atrope commented 3 years ago

I Have the same issue.

getInitialLink is always returning null...

Maybe when upgrading to Null safety something was done?

avioli commented 3 years ago

getInitialLink/getInitialUri are only useful if your app is started from a https://domain.com/path/?arg=example link or from a custom scheme like myawesomeapp0001://whatever/path/?arg=another-example.

Otherwise it will always return null, since the app was started with NO initial link.

If you do start from such a link, then you should check if you've configured your app and server (only if using https) correctly - have a look at the README section for Permission configuration and the links at the end of each platform for more details.

Good luck.

kssujithcj commented 3 years ago

@avioli, Even we are facing the same issue. I have gone through the readme file and all the config are set as mentioned in the readme. The app is working fine in all scenarios on android. Only on iOS when the app is not in the background or closed. The initialURI is null.

ritaamro commented 3 years ago

I was facing the same issue when tapping a Push notification resulted in cold-starting the iOS application, I fixed it here #129