{"_id":"@capawesome/capacitor-toast","_rev":"5-598a907220b04f55ff6578cc10609071","name":"@capawesome/capacitor-toast","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"@capawesome/capacitor-toast","version":"0.0.1","keywords":["capacitor","plugin","native","toast","notification"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-toast@0.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"e1859ced15e89b6e580f7845e4046135437fb0b7","tarball":"https://registry.npmjs.org/@capawesome/capacitor-toast/-/capacitor-toast-0.0.1.tgz","fileCount":34,"integrity":"sha512-t/UHnvKJ3xrWlSzvMGWIM6w+41kkwTwauIzh3iJ1oNn+kisgUBxoTIT01QTXmFeBRcxWQRDsLBmPWDIdKwqt0Q==","signatures":[{"sig":"MEQCICT60E+4X2yftxI1EAuylp3SNOiOzAbl/9RgQ05o8Z4MAiBmTLgOLmkIgEVPqFqXm8o/FJWAQOKhVcQFejLW2HzrCA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73282},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"e18228f8362b044cd453aba542fe8e0a02fd996f","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 ToastPlugin --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}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.13.0","description":"Capacitor plugin to show native toast notifications.","directories":{},"_nodeVersion":"24.16.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-toast_0.0.1_1783426866398_0.5350460813458102","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@capawesome/capacitor-toast","version":"0.1.0","keywords":["capacitor","plugin","native","toast","notification","capacitor-plugin","toast notification","toast message","snackbar","native toast","show toast"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-toast@0.1.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"28c683c47c0f3cf3b1b3341464ad45d1464ad74d","tarball":"https://registry.npmjs.org/@capawesome/capacitor-toast/-/capacitor-toast-0.1.0.tgz","fileCount":34,"integrity":"sha512-eFolCvjzb/keZdnXmFD0VRm68UuItVAxmdumBOEM4TUxxxrbSmSHkZdCQyrZhRuRfVY3Lxei4LZ3ElHFYWQVDA==","signatures":[{"sig":"MEQCIEHN+rChsZUEwSWu8iZeCjSb6baiC5MUBlQKpe6ePl1JAiBMtsloury8Ttyb2bmqOvv/rKziFcWGe/vi1x0ZR/SSVg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-toast@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":77027},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"1ce17b1fd14c43b2f1d5d3c2da82221e1d1dca37","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 ToastPlugin --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}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:da7bfceb-9fb2-4b3b-b962-176d009f54a9"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin to show native toast notifications on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-toast_0.1.0_1784015617557_0.8915677398924837","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@capawesome/capacitor-toast","version":"0.1.1","keywords":["capacitor","plugin","native","toast","notification","capacitor-plugin","toast notification","toast message","snackbar","native toast","show toast"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-toast@0.1.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"7be30b25e56a2c8b501bfcfc456f9926ce1e3cb5","tarball":"https://registry.npmjs.org/@capawesome/capacitor-toast/-/capacitor-toast-0.1.1.tgz","fileCount":34,"integrity":"sha512-9vqthlOHfKIY7lctSeAEoWp5GfKbKoIww6fFCs2KeFLfWzps5dW/Yk6rnVUCH04cmeBxoDBZfTba/9rdbulyFw==","signatures":[{"sig":"MEUCIQCMuEMI/aK7fqHLd4I6GyjqWUqzSiG1YrEwfMgIyMRFUQIgXCFfwSuYV0rRYx0+EiktKrIaLVn7OpUHSZyZ+D2wT9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-toast@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":77036},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"3e61f4b412f9f3f512c21169bb135bbb23a67e6d","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 ToastPlugin --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}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:da7bfceb-9fb2-4b3b-b962-176d009f54a9"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.16.0","description":"Capacitor plugin to show native toast notifications on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.18.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-toast_0.1.1_1784103070828_0.08585578754985157","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@capawesome/capacitor-toast","version":"0.1.2","keywords":["capacitor","plugin","native","toast","notification","capacitor-plugin","toast notification","toast message","snackbar","native toast","show toast"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-toast@0.1.2","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"8b319ebd7d945d13519efb7a7aacab8573a84493","tarball":"https://registry.npmjs.org/@capawesome/capacitor-toast/-/capacitor-toast-0.1.2.tgz","fileCount":34,"integrity":"sha512-Ty1jC2Hl894d6B95bS4e0tJLLdzSyu67EHJi7eUBpmfZNB7Bqz7Dsc2RK77Lylv2wuCs2hsyHeaf7X46NVn81A==","signatures":[{"sig":"MEYCIQCwkfUKDUw/YtJJCWIu5J1q5m22fIsaYGyQHjggLJktOAIhAK5CtqwrogXTJNKBkUX7zhgeUlDBkc3KZOc+xYCV8Yxc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-toast@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":77109},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"7c1937ed10b7de86ca2c1cdc3539a2735fd69a00","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 ToastPlugin --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}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:da7bfceb-9fb2-4b3b-b962-176d009f54a9"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.17.0","description":"Capacitor plugin to show native toast notifications on Android, iOS, and Web.","directories":{},"_nodeVersion":"24.19.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.4.2","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.9.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-toast_0.1.2_1788337432220_0.7785849985950566","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"_id":"@capawesome/capacitor-toast@0.1.3","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"3e69466a3b71450f085ce4d6d99ba7a37bacc4a4","tarball":"https://registry.npmjs.org/@capawesome/capacitor-toast/-/capacitor-toast-0.1.3.tgz","fileCount":34,"integrity":"sha512-UpYTvZAwwg1tgAXPsE2kbM3CBT5s1TWLfrkx7fi9LH5PAUk9LuNvyfGtXHgbPD7V/ODjwxXDdZaG5A5xhYi/eQ==","signatures":[{"sig":"MEQCIAtRPflkfoCASeVv1RwMCk2XAjo3O1o+QFcS+O1/m59aAiBcS3kyH1wAjsF8++KgK5ySevKJWiu+kYRJXTBpIVs39g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDMkFlS6Oiq8wqEnOmyTcFCJIXIpGM1hkPRjNWXcwwVIwIhAL46TD61qfZjP/E7dzXm9eLJ85ukLicTHdLochwJaG8H"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-toast@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79035},"main":"dist/plugin.cjs.js","name":"@capawesome/capacitor-toast","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"ab0091b5ea470f26c80d0726e43cbb70f9fe991c","license":"MIT","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 ToastPlugin --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}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"version":"0.1.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"da7bfceb-9fb2-4b3b-b962-176d009f54a9"}},"homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","keywords":["capacitor","plugin","native","toast","notification","capacitor-plugin","toast notification","toast message","snackbar","native toast","show toast"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.19.0","description":"Capacitor plugin to show native toast notifications on Android, iOS, and Web.","directories":{},"maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"_nodeVersion":"24.21.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.4.2","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.9.7"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-toast_0.1.3_1790854782501_0.30002715894878307"}}},"time":{"created":"2026-07-07T12:21:06.176Z","modified":"2026-10-01T11:39:43.004Z","0.0.1":"2026-07-07T12:21:06.550Z","0.1.0":"2026-07-14T07:53:37.686Z","0.1.1":"2026-07-15T08:11:10.963Z","0.1.2":"2026-09-02T08:23:52.358Z","0.1.3":"2026-10-01T11:39:42.598Z"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","homepage":"https://capawesome.io/docs/sdks/capacitor/toast/","keywords":["capacitor","plugin","native","toast","notification","capacitor-plugin","toast notification","toast message","snackbar","native toast","show toast"],"repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"description":"Capacitor plugin to show native toast notifications on Android, iOS, and Web.","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"readme":"# Capacitor Toast Plugin\n\nCapacitor plugin to show native toast notifications.\n\n<div class=\"capawesome-z29o10a\">\n  <a href=\"https://cloud.capawesome.io/\" target=\"_blank\">\n    <img alt=\"Deliver Live Updates to your Capacitor app with Capawesome Cloud\" src=\"https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1\" />\n  </a>\n</div>\n\n## Features\n\n- 🍞 **Native toasts**: Show short, non-blocking text notifications on Android and iOS.\n- 🌐 **Zero-dependency web**: A self-contained web implementation with no additional peer dependencies.\n- 🧭 **Positioning**: Show toasts at the top, center or bottom of the screen.\n- ⏱️ **Durations**: Choose between a short and a long display duration.\n- 🤝 **Compatibility**: Works alongside the [Action Sheet](https://capawesome.io/docs/sdks/capacitor/action-sheet/), [Dialog](https://capawesome.io/docs/sdks/capacitor/dialog/) and [Haptics](https://capawesome.io/docs/sdks/capacitor/haptics/) plugins.\n- 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.\n- 🔁 **Up-to-date**: Always supports the latest Capacitor version.\n\nMissing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!\n\n## Use Cases\n\nThe Toast plugin is typically used to give users brief, non-blocking feedback, for example:\n\n- **Success confirmations**: Confirm that an action such as saving or sending was completed.\n- **Error notices**: Inform users about a failed action without interrupting their flow.\n- **Clipboard feedback**: Confirm that a value was copied to the clipboard.\n- **Status updates**: Show short status messages such as a lost network connection.\n\n## Compatibility\n\n| Plugin Version | Capacitor Version | Status         |\n| -------------- | ----------------- | -------------- |\n| 0.x.x          | >=8.x.x           | Active support |\n\n## Installation\n\nYou can use our **AI-Assisted Setup** to install the plugin.\nAdd the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:\n\n```bash\nnpx skills add capawesome-team/skills --skill capacitor-plugins\n```\n\nThen use the following prompt:\n\n```\n Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-toast` plugin in my project.\n```\n\nIf you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:\n\n```bash\nnpm install @capawesome/capacitor-toast\nnpx cap sync\n```\n\n### Android\n\nNo additional configuration is required for this plugin.\n\nOn Android 12 and newer, the operating system ignores the requested position and always shows toasts at the bottom of the screen. This is a system restriction and not a bug of this plugin.\n\n### iOS\n\nNo additional configuration is required for this plugin.\n\n## Configuration\n\nNo configuration required for this plugin.\n\n## Demo\n\n| Android                                                                                                                                                            | iOS                                                                                                                                                        |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| <img src=\"https://raw.githubusercontent.com/capawesome-team/capacitor-plugins/main/packages/toast/assets/toast-demo-android.png\" width=\"324\" alt=\"Android Demo\" /> | <img src=\"https://raw.githubusercontent.com/capawesome-team/capacitor-plugins/main/packages/toast/assets/toast-demo-ios.png\" width=\"266\" alt=\"iOS Demo\" /> |\n\n## Usage\n\nThe following example shows how to show a toast.\n\n### Show a toast\n\nShow a short, non-blocking text notification. Use the `duration` option to choose between a short (about 2000 ms) and a long (about 3500 ms) display duration, and the `position` option to show the toast at the top, center or bottom of the screen:\n\n```typescript\nimport { Toast, ToastDuration, ToastPosition } from '@capawesome/capacitor-toast';\n\nconst show = async () => {\n  await Toast.show({\n    text: 'Hello World!',\n    duration: ToastDuration.Short,\n    position: ToastPosition.Bottom,\n  });\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`show(...)`](#show)\n* [Interfaces](#interfaces)\n* [Enums](#enums)\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### show(...)\n\n```typescript\nshow(options: ShowOptions) => Promise<void>\n```\n\nShow a toast with a short text message.\n\n| Param         | Type                                                |\n| ------------- | --------------------------------------------------- |\n| **`options`** | <code><a href=\"#showoptions\">ShowOptions</a></code> |\n\n**Since:** 0.1.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### ShowOptions\n\n| Prop           | Type                                                    | Description                                                                                                                                                                 | Default                           | Since |\n| -------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----- |\n| **`duration`** | <code><a href=\"#toastduration\">ToastDuration</a></code> | The duration of the toast.                                                                                                                                                  | <code>ToastDuration.Short</code>  | 0.1.0 |\n| **`position`** | <code><a href=\"#toastposition\">ToastPosition</a></code> | The position of the toast on the screen. On Android 12 and newer, the position is ignored and the toast is always shown at the bottom of the screen (a system restriction). | <code>ToastPosition.Bottom</code> | 0.1.0 |\n| **`text`**     | <code>string</code>                                     | The text to show in the toast.                                                                                                                                              |                                   | 0.1.0 |\n\n\n### Enums\n\n\n#### ToastDuration\n\n| Members     | Value                | Description                                                  | Since |\n| ----------- | -------------------- | ------------------------------------------------------------ | ----- |\n| **`Long`**  | <code>'LONG'</code>  | Show the toast for a longer period of time (about 3500 ms).  | 0.1.0 |\n| **`Short`** | <code>'SHORT'</code> | Show the toast for a shorter period of time (about 2000 ms). | 0.1.0 |\n\n\n#### ToastPosition\n\n| Members      | Value                 | Description                                 | Since |\n| ------------ | --------------------- | ------------------------------------------- | ----- |\n| **`Bottom`** | <code>'BOTTOM'</code> | Show the toast at the bottom of the screen. | 0.1.0 |\n| **`Center`** | <code>'CENTER'</code> | Show the toast in the center of the screen. | 0.1.0 |\n| **`Top`**    | <code>'TOP'</code>    | Show the toast at the top of the screen.    | 0.1.0 |\n\n</docgen-api>\n\n## Migrating from `@capacitor/toast`\n\nThis plugin offers an API very similar to the official [`@capacitor/toast`](https://github.com/ionic-team/capacitor-plugins/tree/main/toast) plugin, so migrating is straightforward:\n\n- Replace the dependency `@capacitor/toast` with `@capawesome/capacitor-toast`.\n- The web implementation is self-contained, so the [`@ionic/pwa-elements`](https://github.com/ionic-team/pwa-elements) package is no longer required for toasts.\n- The `duration` and `position` options are now typed enums with uppercase string values (e.g. `ToastDuration.Short` → `'SHORT'`, `ToastPosition.Bottom` → `'BOTTOM'`) instead of lowercase string literals.\n\n## FAQ\n\n### How is this plugin different from other similar plugins?\n\nIt shows native toast notifications on Android and iOS and ships a self-contained web implementation with no additional peer dependencies, so toasts work out of the box on every platform. You get typed enums for choosing a short or long duration and a top, center, or bottom position, all through a fully typed API that supports both CocoaPods and Swift Package Manager on iOS and is actively maintained against the latest Capacitor version. If you just need brief, non-blocking feedback anywhere your app runs, a single dependency covers the whole story.\n\n### Why is my toast always shown at the bottom of the screen on Android?\n\nOn Android 12 and newer, the operating system ignores the requested position and always shows toasts at the bottom of the screen. This is a system restriction and not a bug of this plugin.\n\n### How long is a toast displayed?\n\nYou can choose between two durations with the `duration` option: `ToastDuration.Short` shows the toast for about 2000 ms and `ToastDuration.Long` for about 3500 ms. If you don't set the option, the short duration is used by default.\n\n### How is this plugin different from the official `@capacitor/toast` plugin?\n\nThe API is very similar, so migrating is straightforward. The main differences are that the web implementation is self-contained (so the `@ionic/pwa-elements` package is no longer required for toasts) and that the `duration` and `position` options are typed enums with uppercase string values. See [Migrating from `@capacitor/toast`](#migrating-from-capacitortoast) for details.\n\n### Do I need to install `@ionic/pwa-elements` for the web?\n\nNo, the plugin ships with a self-contained web implementation that has no additional peer dependencies. Toasts work on the web out of the box after [installing](#installation) the plugin.\n\n### Do I need any permissions or configuration to use this plugin?\n\nNo, the plugin does not require any permissions or configuration on Android, iOS, or Web. Simply [install](#installation) it and call the `show(...)` method.\n\n### Can I use this plugin with Ionic, React, Vue or Angular?\n\nYes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.\n\n## Related Plugins\n\n- [Action Sheet](https://capawesome.io/docs/sdks/capacitor/action-sheet/): Show native action sheets.\n- [Badge](https://capawesome.io/docs/sdks/capacitor/badge/): Access and update the badge number of the app icon.\n- [Dialog](https://capawesome.io/docs/sdks/capacitor/dialog/): Show native alert, confirm, and prompt dialogs.\n- [Haptics](https://capawesome.io/docs/sdks/capacitor/haptics/): Provide haptic feedback such as impacts, notifications, and vibrations.\n\n## Newsletter\n\nStay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/toast/CHANGELOG.md).\n\n## License\n\nSee [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/toast/LICENSE).\n","readmeFilename":"README.md"}