Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support file sharing in the core Share plugin #846

Closed
moberwasserlechner opened this issue Oct 3, 2018 · 5 comments · Fixed by #2338
Closed

Support file sharing in the core Share plugin #846

moberwasserlechner opened this issue Oct 3, 2018 · 5 comments · Fixed by #2338

Comments

@moberwasserlechner
Copy link
Contributor

Sth like this:

Plugins.Share.shareFile({
      data: base64EncodedFileData,
      cacheDirectory?: "" // where to cache the file, which should be shared
})
@moberwasserlechner
Copy link
Contributor Author

I develop this in a plugin first because it's easier to test across platforms.

See https://github.com/moberwasserlechner/capacitor-filesharer.

As soon as it is stable we could integrate it in the core if the need appears.

@jonathon-m
Copy link

Hopefully this will include support for Web Share API Level 2. Considering it's available in Chrome 75, it'll likely be standard soon.

@jcesarmobile
Copy link
Member

Turns out Share plugin was already able to share files by using the url param, I've fixed it for Android too. So will close this issue once it's merged.

@jonathon-m
Copy link

Thanks @jcesarmobile !

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@moberwasserlechner @jcesarmobile @jonathon-m and others