chirag04 / react-native-mail

A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android
MIT License
445 stars 249 forks source link

pdf not getting attached to mail in higher version androids #182

Open cakesoft-shivani opened 3 years ago

cakesoft-shivani commented 3 years ago

I tried with android 10 and below that it is working but for android 11 it is not getting attached to mail

avonipenti commented 3 years ago

I noticed our mail feature broken after the android OS upgrade to 11. Looks like the fix is merged but not released yet. I would suggest adding the `

`

to your AndroidManifest.xml before the<application .. for temporary fix while we wait to get the release.

abhay-sqh commented 3 years ago

After adding below code snippet in Project's main AndroidManifest.xml file, pdf attachment is working fine in Android 11 but still facing issue in Android 10 devices:

<queries> <intent> <action android:name="android.intent.action.SEND_MULTIPLE" /> <data android:mimeType="*/*" /> </intent> </queries>

When redirecting to Gmail client from app, 'Couldn't attach file' error is visible on toast message.

Please suggest.

RaniXavier commented 3 years ago

I am also experiencing the same issue. pdf not getting attached to mail in Android.