react-native-receive-sharing-intent icon indicating copy to clipboard operation
react-native-receive-sharing-intent copied to clipboard

can't receive files

Open isot1990 opened this issue 4 years ago • 8 comments

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.

isot1990 avatar Feb 21 '21 18:02 isot1990

Same issue here, nothing happens.

lucijafrkovic avatar Mar 12 '21 09:03 lucijafrkovic

Same issue here

pvstelles avatar Jul 19 '21 18:07 pvstelles

Facing this issue. Please help

Siddharth2212 avatar Mar 18 '22 20:03 Siddharth2212

any update on this issue?

knifedge avatar Jun 27 '22 07:06 knifedge

anyone come up with a solution to this?

ryanmurphy804 avatar Nov 10 '22 00:11 ryanmurphy804

any solution now?

fukemy avatar Nov 18 '22 07:11 fukemy

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

riteshapatel avatar Nov 27 '22 05:11 riteshapatel

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

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

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

esonetec avatar Dec 30 '22 10:12 esonetec