question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied for the attachment

See original GitHub issue

Hey and thank you for your amazing work. Basically I am trying to send an attachment through email but I am getting a Permission deined for the attachment error on Android.

On iOS the path just gets written after message body…

The file Im trying to send is a vcf file (VCard), the url Im trying to send looks like this: file:///data/user/0/com.appName/files/Teste-ABC.vc

my shareOptions object:

shareOptions: {
    title: 'Share VCard',
    url: `file://${file}`,
    type: 'vcf',
    message: 'VCard Test'
},

And, Im using the shareSingle option like this:

Share.shareSingle(Object.assign(shareOptions, {
    "social": "email"
}));

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MithleshKumarAndroidcommented, Jul 30, 2019

permission denied for attachment react native

1reaction
prtkkmrsnghcommented, Jun 27, 2017

@avencat Removing type from options is working as intended 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

When I try to email my report, I get the “Permission denied for ...
When I try to email my report, I get the “Permission denied for the attachment” message, what should I do? · Open the...
Read more >
Gmail 5.0 app fails with "Permission denied for the attachment ...
I was able to pass a screenshot .jpeg file from my app to GMail 5.0 through an Intent. The key was in this...
Read more >
permission denied to the attachment - Android Central Forums
Gmail opens and "permission denied to the attachment" appears. I never had a problem until the 2 days ago. All apps updated.
Read more >
Permission denied for the attachment when creating email on ...
I am able to compose an email - but have the toast appearing with "Permission denied for the attachment" string filename = "log.txt"; ......
Read more >
Change app permissions on your Android phone - Google Help
If you allowed or denied any permissions for the app, you'll find them here. To change a permission setting, tap it, then choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found