lucasferreira / react-native-send-intent

React Native Android module to use Android's Intent actions for send text to shareable apps or make phone calls or opening third party apps
419 stars 159 forks source link

Is possible get result from the external app? #135

Open polinello-zz opened 3 years ago

polinello-zz commented 3 years ago

Hi!

this library could be very helpful for me; I'll explain my use case:

In my React Native app I want do something by calling an external app and passing data, so I would call openAppWithData("com.external.app", data) but I want to get response from the external app too, so in my old native scenario I implemented this:

val intent = Intent() try { intent.setClassName(appPackageName, className) intent.data = Uri.parse(url) intent.action = Intent.ACTION_VIEW startActivityForResult(intent, 0)

and then handle the result by onActivityResult method

So I want to do something similar... can you help me? May I do use other library in order to do this?

Thank you