llfbandit / app_links

Android App Links, Deep Links, iOs Universal Links and Custom URL schemes handler for Flutter.
https://pub.dev/packages/app_links
Apache License 2.0
176 stars 68 forks source link

iOS: getInitialAppLink always returns null #32

Closed ShahinRockstarsIT closed 1 year ago

ShahinRockstarsIT commented 1 year ago

On iOS cold boot getInitialAppLink or even getLatestAppLink always return null;

final uri = await appLinks.getInitialAppLink() ?? await appLinks.getLatestAppLink();
// uri is always null on iOS

any fix on this issue?

llfbandit commented 1 year ago

Does the example work? I need more than "it does not work". Please fill a reproducer.

ShahinRockstarsIT commented 1 year ago

I have tried to get the initial or latest link on several locations in my app. but it seems always to be null.

main(){
 runApp(MyApp())
}

Tree:
 -- MyApp ()
 // I tried in this widget
 -- -- Main ()
 // I tried in this widget
-- -- -- Home ()
 // I tried in this widget
SAGARSURI commented 1 year ago

Hey, @ShahinRockstarsIT please post a sample app that the author can run or debug and reproduce the error. The above code which you posted is not at all helpful.