uni_links icon indicating copy to clipboard operation
uni_links copied to clipboard

Update getInitialLink() method call logic [Android only]

Open Vizhan opened this issue 3 years ago • 3 comments

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

  • Open an application within a link (cold start)
  • Close application by the pressing system back
  • Open the Recents screen (aka recent task/app list) and go back to the application

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 avatar Nov 16 '20 11:11 Vizhan

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

Vizhan avatar Nov 25 '20 13:11 Vizhan

@avioli could you please review this PR

maheshmnj avatar Nov 26 '20 07:11 maheshmnj

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

avioli avatar Apr 28 '21 01:04 avioli

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.

avioli avatar Apr 23 '24 09:04 avioli