avioli / uni_links

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

Why android app starts from scratch when another app opens it? #153

Open dmitry-grin opened 2 years ago

dmitry-grin commented 2 years ago

When a third party app try open https://mydomain.com, android phones lost current context of the application and it starts from scratch while iOS app persist the place user left off.

Is it the problem with the navigation or app links settings?

Also, I have an assumption that it can happen because we have main app and another sub app that we adopt as a plugin. The last place before transitioning to third party app is currently our sub app.

Any help regarding this problem will be much appreciated.

rvanderlinden commented 2 years ago

Without context this is a guessing game, but you may want to look into the activity's launchMode property as defined in the manifest. This property defines the apps view stack behaviour when it is opened multiple times.