ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
309 stars 112 forks source link

can't receive files #57

Open isot1990 opened 3 years ago

isot1990 commented 3 years ago

after redirect to my app

ReceiveSharingIntent.getReceivedFiles( files => { // files returns as JSON Array example //[{ filePath: null, text: null, weblink: null, mimeType: null, contentUri: null, fileName: null, extension: null }] }, error => { console.log(error); }, 'com.xxxxx', // share url protocol (must be unique to your app, suggest using your apple bundle id) );

does not work. it doesn't receive any thing.

lucijafrkovic commented 3 years ago

Same issue here, nothing happens.

pvstelles commented 3 years ago

Same issue here

Siddharth2212 commented 2 years ago

Facing this issue. Please help

knifedge commented 2 years ago

any update on this issue?

ryanmurphy804 commented 2 years ago

anyone come up with a solution to this?

fukemy commented 2 years ago

any solution now?

riteshapatel commented 2 years ago

Anyone figured this out? Airdrop opens the app but does not receive files. TIA!

esonetec commented 1 year ago

Hi guys, did you add the following intent to android/app/src/main/AndroidManifest.xml:

`

<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:mimeType="image/*" />
<!-- Any other mime types you want to support -->

`

Seems like it is necessary and not done automatically by the lib.