Deepak
Deepak

Reputation: 310

Firebase dynamic link - opening multiple instance of the app

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

Upvotes: 18

Views: 1709

Answers (1)

Manohar
Manohar

Reputation: 23384

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 .

Upvotes: 13

Related Questions