Search code examples
flutterapplinks

Flutter App opens in another application(duplicate application)


I'm using app links with uni_links library in my flutter app.

There is a problem that whenever I clicked my app link in another application(like Google Calendar), the OS opens my app again.

Somehow I have a duplicate of that. Here is my screenshot that what exactly happened:

my screenshot

I just want to open my last app that exists in background.

What should I do to fix this problem?


Solution

  • Well according to this answer,

    I should change android:launchMode="singleTop" to android:launchMode="singleTask" of my MainActivity in manifest.xml.