{"_id":"@capacitor-geckoview/share","_rev":"4-5b483afb58f02f8610e7da49a0ab1d41","name":"@capacitor-geckoview/share","dist-tags":{"latest":"8.6.0"},"versions":{"8.0.1":{"name":"@capacitor-geckoview/share","version":"8.0.1","keywords":["capacitor","plugin","native"],"author":{"name":"Ionic","email":"hi@ionicframework.com"},"license":"MIT","_id":"@capacitor-geckoview/share@8.0.1","maintainers":[{"name":"wszgrcy","email":"wszgrcy@gmail.com"}],"homepage":"https://github.com/wszgrcy/capacitor-geckoview-plugins#readme","bugs":{"url":"https://github.com/wszgrcy/capacitor-geckoview-plugins/issues"},"dist":{"shasum":"b90ac55804afd8b534f8eb826ba37322e3b92a47","tarball":"https://registry.npmjs.org/@capacitor-geckoview/share/-/share-8.0.1.tgz","fileCount":24,"integrity":"sha512-5JxKsaTcRBYoJ8bdfKORMDfXL4SHtyF2GgOvch3NV0FuAkVmePcUyaOxKnhkYWLa8kpj7vUOXtKhbk/fp/dEGQ==","signatures":[{"sig":"MEUCIBRQL5jL6N/+6WlU1uhC93sdBsSHgiGPMSuwqKPWzoH6AiEA6VNRblI6lzWGIgLhtIYkXCNTlO16LEF4MYZZHTJmQfU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39253},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"4225aeb43b7250f2a81f07a7adee97b4b4b38bf5","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SharePlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","verify:ios":"xcodebuild build -scheme CapacitorShare -destination generic/platform=iOS","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","publish:cocoapod":"pod trunk push ./CapacitorShare.podspec --allow-warnings"},"_npmUser":{"name":"wszgrcy","email":"wszgrcy@gmail.com"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/wszgrcy/capacitor-geckoview-plugins.git","type":"git"},"_npmVersion":"11.12.1","description":"The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.","directories":{},"_nodeVersion":"24.15.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","rimraf":"^6.1.0","rollup":"^4.53.2","prettier":"^3.6.2","swiftlint":"^2.0.0","typescript":"^5.9.3","@capacitor/ios":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"^8.0.0","@ionic/eslint-config":"^0.4.0","prettier-plugin-java":"^2.7.7","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/share_8.0.1_1788514834812_0.4865166552304072","host":"s3://npm-registry-packages-npm-production"}},"8.5.6":{"name":"@capacitor-geckoview/share","version":"8.5.6","keywords":["capacitor","plugin","native"],"author":{"name":"wszgrcy","email":"wszgrcy@gmail.com"},"license":"MIT","_id":"@capacitor-geckoview/share@8.5.6","maintainers":[{"name":"wszgrcy","email":"wszgrcy@gmail.com"}],"homepage":"https://github.com/wszgrcy/capacitor-geckoview-plugins#readme","bugs":{"url":"https://github.com/wszgrcy/capacitor-geckoview-plugins/issues"},"dist":{"shasum":"412186fc34a3b8a3c92d3750f2c61a92e6d5a363","tarball":"https://registry.npmjs.org/@capacitor-geckoview/share/-/share-8.5.6.tgz","fileCount":24,"integrity":"sha512-ZhQHL1D5YQCIU+RJM3ExkODqADYt36Og57k5bmmYGi6BDYZ5ywtuLDUCjqYBJdjO1OaPFBuaJ8QOea3sHNBhPA==","signatures":[{"sig":"MEYCIQC4kc3MrHz1nUXgxXMEEXRCPmxIAgAci9NARssk9Rn8RwIhAIeDomrAoyjzZvDcLgZbJkq6GnzyfvIhDzu2Sb9g5dOw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-geckoview%2fshare@8.5.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39293},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"7b5d783b4736fa7ece909ce8d6f8360ba60b6868","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SharePlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","verify:ios":"xcodebuild build -scheme CapacitorShare -destination generic/platform=iOS","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","publish:cocoapod":"pod trunk push ./CapacitorShare.podspec --allow-warnings"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ce31cf3-daeb-4883-95aa-31fe6d9d68d5"}},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/wszgrcy/capacitor-geckoview-plugins.git","type":"git"},"_npmVersion":"11.19.0","description":"The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.","directories":{},"_nodeVersion":"24.20.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","rimraf":"^6.1.0","rollup":"^4.53.2","prettier":"^3.6.2","swiftlint":"^2.0.0","typescript":"^5.9.3","@capacitor/ios":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/docgen":"0.3.0","@ionic/eslint-config":"^0.4.0","prettier-plugin-java":"^2.7.7","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","@capacitor-geckoview/android":"^8.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/share_8.5.6_1788531394645_0.9465381306249958","host":"s3://npm-registry-packages-npm-production"}},"8.5.7":{"name":"@capacitor-geckoview/share","version":"8.5.7","keywords":["capacitor","plugin","native"],"author":{"name":"wszgrcy","email":"wszgrcy@gmail.com"},"license":"MIT","_id":"@capacitor-geckoview/share@8.5.7","maintainers":[{"name":"wszgrcy","email":"wszgrcy@gmail.com"}],"homepage":"https://github.com/wszgrcy/capacitor-geckoview-plugins#readme","bugs":{"url":"https://github.com/wszgrcy/capacitor-geckoview-plugins/issues"},"dist":{"shasum":"e7f7c05420a3d432b4bd3145f1338062d53f0a10","tarball":"https://registry.npmjs.org/@capacitor-geckoview/share/-/share-8.5.7.tgz","fileCount":24,"integrity":"sha512-0RQJwVtJOiskXNd8mRRrCHQHWdE254pnC4lQFxlcAYi8J1fuPbHeVWckhNoeB/Ip3NYg5p6SEQcdqoQPgyl5Hg==","signatures":[{"sig":"MEYCIQChMYC5MH1I6nleKnuIkY1alzVySysETEtgdcFwsp1oQAIhAP6xYk2j576MtQk1UyTo0t1eE7HwV2MdU+VeBDzvZraE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-geckoview%2fshare@8.5.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39293},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"8b5461b659b8d1788d8b7058a1dc6743c53c769c","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api SharePlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","verify:ios":"xcodebuild build -scheme CapacitorShare -destination generic/platform=iOS","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","publish:cocoapod":"pod trunk push ./CapacitorShare.podspec --allow-warnings"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ce31cf3-daeb-4883-95aa-31fe6d9d68d5"}},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/wszgrcy/capacitor-geckoview-plugins.git","type":"git"},"_npmVersion":"11.19.0","description":"The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.","directories":{},"_nodeVersion":"24.20.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","rimraf":"^6.1.0","rollup":"^4.53.2","prettier":"^3.6.2","swiftlint":"^2.0.0","typescript":"^5.9.3","@capacitor/ios":"^8.0.0","@capacitor/core":"^8.0.0","@capacitor/docgen":"0.3.0","@ionic/eslint-config":"^0.4.0","prettier-plugin-java":"^2.7.7","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","@capacitor-geckoview/android":"^8.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/share_8.5.7_1788531824933_0.925978993629389","host":"s3://npm-registry-packages-npm-production"}},"8.6.0":{"name":"@capacitor-geckoview/share","version":"8.6.0","description":"The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"wszgrcy","email":"wszgrcy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/wszgrcy/capacitor-geckoview-plugins.git"},"bugs":{"url":"https://github.com/wszgrcy/capacitor-geckoview-plugins/issues"},"keywords":["capacitor","plugin","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"xcodebuild build -scheme CapacitorShare -destination generic/platform=iOS","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","docgen":"docgen --api SharePlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build","publish:cocoapod":"pod trunk push ./CapacitorShare.podspec --allow-warnings"},"devDependencies":{"@capacitor/core":"^8.0.0","@capacitor/docgen":"0.3.0","@capacitor/ios":"^8.0.0","@ionic/eslint-config":"^0.4.0","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","eslint":"^8.57.1","prettier":"^3.6.2","prettier-plugin-java":"^2.7.7","rimraf":"^6.1.0","rollup":"^4.53.2","swiftlint":"^2.0.0","typescript":"^5.9.3","@capacitor-geckoview/android":"^8.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"publishConfig":{"access":"public"},"gitHead":"01d4ce279e0b0b0c55b1b392db3f9a1b4673052e","_id":"@capacitor-geckoview/share@8.6.0","homepage":"https://github.com/wszgrcy/capacitor-geckoview-plugins#readme","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-CPtjmkKbXqH2NL/zNHgjjjYWf18ojFD7z3N+BvzEiWHWGMBLBYt/JNXZgsKmHNrHRkXlf2vSufdDI0Q2I/R6Yw==","shasum":"f9ec9158c511b94045cc73379cdf1a6b311b5f3d","tarball":"https://registry.npmjs.org/@capacitor-geckoview/share/-/share-8.6.0.tgz","fileCount":24,"unpackedSize":39293,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capacitor-geckoview%2fshare@8.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCsGN/+zy9B4eYZX9sANs2eWh4ecH597WF6lCo6HRCvkQIhAJruFvbbDK1eg17trbmM2C/MpT82uBgXvJSVTv8V2Muj"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:6ce31cf3-daeb-4883-95aa-31fe6d9d68d5"}},"directories":{},"maintainers":[{"name":"wszgrcy","email":"wszgrcy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/share_8.6.0_1788767332591_0.5452172792349395"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-04T09:40:34.654Z","modified":"2026-09-07T07:48:53.004Z","8.0.1":"2026-09-04T09:40:34.948Z","8.5.6":"2026-09-04T14:16:34.788Z","8.5.7":"2026-09-04T14:23:45.074Z","8.6.0":"2026-09-07T07:48:52.721Z"},"bugs":{"url":"https://github.com/wszgrcy/capacitor-geckoview-plugins/issues"},"author":{"name":"wszgrcy","email":"wszgrcy@gmail.com"},"license":"MIT","homepage":"https://github.com/wszgrcy/capacitor-geckoview-plugins#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/wszgrcy/capacitor-geckoview-plugins.git"},"description":"The Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.","maintainers":[{"name":"wszgrcy","email":"wszgrcy@gmail.com"}],"readme":"# @capacitor/share\n\nThe Share API provides methods for sharing content in any sharing-enabled apps the user may have installed.\n\nThe Share API works on iOS, Android, and the Web (using the new [Web Share\nAPI](https://web.dev/web-share/)), though web support is currently spotty.\n\n## Install\n\n```bash\nnpm install @capacitor/share\nnpx cap sync\n```\n## Android\n\nBy default, Capacitor apps only allow to share files from caches folder. To make other Android folders shareable, they have to be added in `android/app/src/main/res/xml/file_paths.xml` file. Check the Specifying Available Files section in [FileProvider docs](https://developer.android.com/reference/androidx/core/content/FileProvider) for the available locations.\n\n## Example\n\n```typescript\nimport { Share } from '@capacitor/share';\n\nawait Share.share({\n  title: 'See cool stuff',\n  text: 'Really awesome thing you need to see right meow',\n  url: 'http://ionicframework.com/',\n  dialogTitle: 'Share with buddies',\n});\n\n// Share text only\nawait Share.share({\n  text: 'Really awesome thing you need to see right meow',\n});\n\n// Share url only\nawait Share.share({\n  url: 'http://ionicframework.com/',\n});\n\n// Share local file using url parameter\nconst photo = await Camera.getPhoto(options);\nawait Share.share({\n  url: photo.path,\n});\n\n// Share multiple files using files parameter\nconst { photos } = await Camera.pickImages(options);\nawait Share.share({\n  files: photos.map(photo => photo.path!),\n});\n```\n\nEach platform uses a different set of fields, but you should supply them all.\n\n## API\n\n<docgen-index>\n\n* [`canShare()`](#canshare)\n* [`share(...)`](#share)\n* [Interfaces](#interfaces)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### canShare()\n\n```typescript\ncanShare() => Promise<CanShareResult>\n```\n\nCheck if sharing is supported.\n\n**Returns:** <code>Promise&lt;<a href=\"#canshareresult\">CanShareResult</a>&gt;</code>\n\n**Since:** 1.1.0\n\n--------------------\n\n\n### share(...)\n\n```typescript\nshare(options: ShareOptions) => Promise<ShareResult>\n```\n\nShow a Share modal for sharing content with other apps\n\n| Param         | Type                                                  |\n| ------------- | ----------------------------------------------------- |\n| **`options`** | <code><a href=\"#shareoptions\">ShareOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#shareresult\">ShareResult</a>&gt;</code>\n\n**Since:** 1.0.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### CanShareResult\n\n| Prop        | Type                 | Description                          | Since |\n| ----------- | -------------------- | ------------------------------------ | ----- |\n| **`value`** | <code>boolean</code> | Whether sharing is supported or not. | 1.1.0 |\n\n\n#### ShareResult\n\n| Prop               | Type                | Description                                                                                                              | Since |\n| ------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----- |\n| **`activityType`** | <code>string</code> | Identifier of the app that received the share action. Can be an empty string in some cases. On web it will be undefined. | 1.0.0 |\n\n\n#### ShareOptions\n\n| Prop              | Type                  | Description                                                                         | Since |\n| ----------------- | --------------------- | ----------------------------------------------------------------------------------- | ----- |\n| **`title`**       | <code>string</code>   | Set a title for any message. This will be the subject if sharing to email           | 1.0.0 |\n| **`text`**        | <code>string</code>   | Set some text to share                                                              | 1.0.0 |\n| **`url`**         | <code>string</code>   | Set a URL to share, can be http, https or file:// URL                               | 1.0.0 |\n| **`files`**       | <code>string[]</code> | Array of file:// URLs of the files to be shared. Only supported on iOS and Android. | 4.1.0 |\n| **`dialogTitle`** | <code>string</code>   | Set a title for the share modal. This option is only supported on Android.          | 1.0.0 |\n\n</docgen-api>\n","readmeFilename":"README.md"}