avioli / uni_links

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

Update getInitialLink() method call logic [Android only] #81

Closed Vizhan closed 7 months ago

Vizhan commented 4 years ago

@avioli On Android, there is an "issue" where the getInitialLink() method returns data multiple times. One way to produce this is:

This is happening when the application starts up again. However, when processing the intent it should check to make sure that the app isn't launched via the Recents screen. This PR as this guard in to prevent the "issue" from happening (do not return data to MethodChannel.Result when getInitialLink() called if application resuming from Recents screen).

Vizhan commented 4 years ago

@avioli Related issue https://github.com/avioli/uni_links/issues/83

maheshj01 commented 4 years ago

@avioli could you please review this PR

avioli commented 3 years ago

@Vizhan Does a launch from the Recents screen launch a new instance of the app or it resumes a backgrounded instance?

avioli commented 7 months ago

I'm sorry to say, but I don't have any time to maintain this package, so it is now marked as discontinued and app_links recommended replacement.