16

I'm using Firebase dynamic link for deferred deeplinking following the guidelines mentioned in firebase docs. I'm facing a weird issue, if I open the link in WhatsApp or SMS app, the application opens in whatsapp or sms while there is already an instance of the deeplinked app running. Is there any solution for this?enter image description here

Deepak
  • 190
  • 8

1 Answers1

11

If you are using multiple activities then android:launchMode="singleInstance" seems to work .

 <activity
        android:name=".activity.MainActivity"
        android:launchMode="singleInstance"/>

But in my case I am using single activity architecture , not sure how to handle it .

Manohar
  • 22,116
  • 9
  • 108
  • 144
  • Getting this error on build: Manifest merger failed : Attribute activity#com.app.app.MainActivity@launchMode value=(singleTop) from AndroidManifest.xml:19:13-48 is also present at AndroidManifest.xml:19:13-48 value=(singleInstance). – metamonkey Nov 23 '21 at 22:12
  • Check merged manifest if any errror – Manohar Nov 24 '21 at 05:57