Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 430
Deepak Avatar asked Feb 02 '18 15:02

Deepak


1 Answers

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 .

like image 96
Manohar Avatar answered Oct 05 '22 23:10

Manohar