share-api-polyfill icon indicating copy to clipboard operation
share-api-polyfill copied to clipboard

register as share target

Open jimmywarting opened this issue 5 years ago • 1 comments

Think it would be grate if there where a method to register as a share target using web manifest.json share polyfill looks at the manifest to see if there is any such config in there, register it in some centralized localStorage origin which communicates throught postMessage+iframe. all sites that you then visit automatically becomes available as a share target then.

https://web.dev/web-share-target

jimmywarting avatar Aug 13 '20 15:08 jimmywarting

Hi Just pulled an all nigher getting this up and running

Could use a code review and some more work done to support files and reading manifest files or something. as well as a litle refingment and documentations.

But it lets you configure the ShareTargets in a manifest like way for your app.

https://github.com/syonfox/share-api-polyfill

https://syonfox.github.io/share-api-polyfill/docs/ShareTarget.html

Lastly I have not re-implemented all of the share targets yet but have added a few. notably gmail and yahoo

syonfox avatar Jun 11 '22 14:06 syonfox