alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
764 stars 398 forks source link

Share extension opens up different instance of application #202

Open rutujayewalekar29 opened 4 years ago

rutujayewalekar29 commented 4 years ago

I am using react native share extension on android. When I share from any other app to my app, it launches a different instance of my application even though an application is already running in background. I want the share to open the already existing instance of the application. How do I achieve this ?

ammarahm-ed commented 4 years ago

use android:launchMode="singleInstance" in tag in AndroidManifest.xml

YeshanJay commented 4 years ago

What about for iOS?

rutujayewalekar29 commented 4 years ago

Setting launchMode "singleTask" in AndroidManifest.xml worked for me

ajith-ab commented 4 years ago

i ve used this package with all new features with react native greater than 0.60 support react-native-receive-sharing-intent