{"_id":"@daalex90/capacitor-plugin-silent-notifications","_rev":"5-83f5d21cfff0e0c29990244b54fbe5bb","name":"@daalex90/capacitor-plugin-silent-notifications","dist-tags":{"latest":"7.0.0"},"versions":{"6.0.0":{"name":"@daalex90/capacitor-plugin-silent-notifications","version":"6.0.0","keywords":["capacitor","plugin","native"],"author":"","license":"MIT","_id":"@daalex90/capacitor-plugin-silent-notifications@6.0.0","maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"dist":{"shasum":"3bec8bbf4c9a70b0a0fdb5b8990187c7b660a39d","tarball":"https://registry.npmjs.org/@daalex90/capacitor-plugin-silent-notifications/-/capacitor-plugin-silent-notifications-6.0.0.tgz","fileCount":24,"integrity":"sha512-FMmyW5Xw4S52cBL0DlQaC9nPrEjxUCaLLcWthSnTHW3aiSdnBuGEsQZAKwpTvIb1wgyUtzcEHXV0GXcfRjMf+Q==","signatures":[{"sig":"MEYCIQDFnWWoIJvnjQt53Z9DfDoeK9BbxtGcqYWTskGIci442wIhAOfaFCFMCc8mIvGvVZzP4Wo0Enm4ykvZy6cctfgvk85l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20686},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"4d661751ac463a973da95add96f65a0ce70d29cd","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.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api CapacitorSilentNotificationsPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && 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 && cd ..","verify:web":"npm run build","prod-publish":"npm publish --access=public","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"daalex90","email":"alexander.balleitner@gmx.at"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git","type":"git"},"_npmVersion":"8.19.3","description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","directories":{},"_nodeVersion":"18.12.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","prettier":"~2.2.0","swiftlint":"^1.0.1","typescript":"~4.0.3","@capacitor/ios":"^6.0.0","@capacitor/core":"^6.0.0","@capacitor/docgen":"^0.0.18","@capacitor/android":"^6.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"~1.0.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-plugin-silent-notifications_6.0.0_1720472025841_0.6923938422816032","host":"s3://npm-registry-packages"}},"6.0.1":{"name":"@daalex90/capacitor-plugin-silent-notifications","version":"6.0.1","keywords":["capacitor","plugin","native"],"author":"","license":"MIT","_id":"@daalex90/capacitor-plugin-silent-notifications@6.0.1","maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"dist":{"shasum":"1cbd7e742d7c53d24406ed193de20373ce881ca1","tarball":"https://registry.npmjs.org/@daalex90/capacitor-plugin-silent-notifications/-/capacitor-plugin-silent-notifications-6.0.1.tgz","fileCount":24,"integrity":"sha512-E0ATznonXMGKbVRcwv5QElUUFiB2NN/4WbwMxMt0b99Yc0TctwC4HXtpvLUVvWpdWolegr/0jIkEi2D1ABVbhA==","signatures":[{"sig":"MEYCIQC+prsBkbJ52DDi370p9Gd3fSSeBNzTBPdA/hXYBjse4gIhALvp4cbL61hKmsBM6MfA+bRTcTGNNJ1ELP7bI3jWiXBJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20718},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"341006cbff1b770768a34781def0f2e049c90de6","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.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api CapacitorSilentNotificationsPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && 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 && cd ..","verify:web":"npm run build","prod-publish":"npm publish --access=public","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"daalex90","email":"alexander.balleitner@gmx.at"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git","type":"git"},"_npmVersion":"8.19.3","description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","directories":{},"_nodeVersion":"18.12.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","prettier":"~2.2.0","swiftlint":"^1.0.1","typescript":"~4.0.3","@capacitor/ios":"^6.0.0","@capacitor/core":"^6.0.0","@capacitor/docgen":"^0.0.18","@capacitor/android":"^6.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"~1.0.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-plugin-silent-notifications_6.0.1_1720549853342_0.07250259976044582","host":"s3://npm-registry-packages"}},"6.0.2":{"name":"@daalex90/capacitor-plugin-silent-notifications","version":"6.0.2","keywords":["capacitor","plugin","native"],"author":"","license":"MIT","_id":"@daalex90/capacitor-plugin-silent-notifications@6.0.2","maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"dist":{"shasum":"85d8728f62f0dad63efbfd01f1a1a4163cdd5c20","tarball":"https://registry.npmjs.org/@daalex90/capacitor-plugin-silent-notifications/-/capacitor-plugin-silent-notifications-6.0.2.tgz","fileCount":24,"integrity":"sha512-UzBlOwp1/0VmUf9T42nGmYZhbsaUvJKvn66MUTbWB5nBBPS03LHOjHeotc6LV+BIPAwie7TsFnlbwIV0dm7/lA==","signatures":[{"sig":"MEUCIQCVFfvA7wPQJFpGoRbc9jCxMtuJiysrSzaTthWfANkGyQIgHytlLW7MQepaf1CtYaRxzHeMJ6U3qy9MxnFMjJ4e8nE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20688},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"59f19539847d349ed86d98fda68f658a4886b587","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.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api CapacitorSilentNotificationsPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && 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 && cd ..","verify:web":"npm run build","prod-publish":"npm publish --access=public","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"daalex90","email":"alexander.balleitner@gmx.at"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git","type":"git"},"_npmVersion":"8.19.3","description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","directories":{},"_nodeVersion":"18.12.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","prettier":"~2.2.0","swiftlint":"^1.0.1","typescript":"~4.0.3","@capacitor/ios":"^6.0.0","@capacitor/core":"^6.0.0","@capacitor/docgen":"^0.0.18","@capacitor/android":"^6.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"~1.0.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-plugin-silent-notifications_6.0.2_1720551653421_0.6099793566806582","host":"s3://npm-registry-packages"}},"6.0.3":{"name":"@daalex90/capacitor-plugin-silent-notifications","version":"6.0.3","keywords":["capacitor","plugin","native"],"author":"","license":"MIT","_id":"@daalex90/capacitor-plugin-silent-notifications@6.0.3","maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"dist":{"shasum":"9a9687dee0e836bd1c4ea24b7fa397d34ac42468","tarball":"https://registry.npmjs.org/@daalex90/capacitor-plugin-silent-notifications/-/capacitor-plugin-silent-notifications-6.0.3.tgz","fileCount":24,"integrity":"sha512-yB3AdxvV3530Jy5iVWoxZBdYdtqyfsZeLEMmFNPqQTskMji9Gw9/9BNanPBa2VUa7o6ECW+JR13AxiNDj4uNZw==","signatures":[{"sig":"MEYCIQDHyOHzTv6spQIouD7D+UWH7KOqhGh/HHHOI1xGjCAu9AIhAJQ4EFHU3ADCS+25jH0hywfIqFMhVN+rIyGIggMbUDCn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20704},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","gitHead":"6e0ee82b9629bf03a62df22edb9f93a12b41134f","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.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api CapacitorSilentNotificationsPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && 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 && cd ..","verify:web":"npm run build","prod-publish":"npm publish --access=public","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd .."},"_npmUser":{"name":"daalex90","email":"alexander.balleitner@gmx.at"},"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git","type":"git"},"_npmVersion":"8.19.3","description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","directories":{},"_nodeVersion":"18.12.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.11.0","rimraf":"^3.0.2","rollup":"^2.32.0","prettier":"~2.2.0","swiftlint":"^1.0.1","typescript":"~4.0.3","@capacitor/ios":"^6.0.0","@capacitor/core":"^6.0.0","@capacitor/docgen":"^0.0.18","@capacitor/android":"^6.0.0","@ionic/eslint-config":"^0.3.0","prettier-plugin-java":"~1.0.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-plugin-silent-notifications_6.0.3_1721160057947_0.7996628322889319","host":"s3://npm-registry-packages"}},"7.0.0":{"name":"@daalex90/capacitor-plugin-silent-notifications","version":"7.0.0","description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git"},"bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"keywords":["capacitor","plugin","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","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 CapacitorSilentNotificationsPlugin --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","prod-publish":"npm publish --access=public"},"devDependencies":{"@capacitor/android":"^7.0.0","@capacitor/core":"^7.0.0","@capacitor/docgen":"^0.3.0","@capacitor/ios":"^7.0.0","@ionic/eslint-config":"^0.4.0","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","eslint":"^8.57.0","prettier":"^3.4.2","prettier-plugin-java":"^2.6.6","rimraf":"^6.0.1","rollup":"^4.30.1","swiftlint":"^2.0.0","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"_id":"@daalex90/capacitor-plugin-silent-notifications@7.0.0","gitHead":"6e0ee82b9629bf03a62df22edb9f93a12b41134f","homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-KiJhx6UODoy7skLC69zTZkFlEswz+8TqgApUQ/GeUb/g9frYt327yvcS4mDkjvR3Hf8cBIHWtNUPgogGsbZwzQ==","shasum":"c80dab2baaab66907b75ad1da32c973cb1d9d309","tarball":"https://registry.npmjs.org/@daalex90/capacitor-plugin-silent-notifications/-/capacitor-plugin-silent-notifications-7.0.0.tgz","fileCount":24,"unpackedSize":20523,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHHsujutaOb5rpIZDAomni9AtAZ0X5eAMt6WQ1Hsu1MrAiEAkiHOfg1+n5AFDKqlwx8VZBlt4IYeJHvJDz2+3mNSZo0="}]},"_npmUser":{"name":"daalex90","email":"alexander.balleitner@gmx.at","actor":{"name":"daalex90","email":"alexander.balleitner@gmx.at","type":"user"}},"directories":{},"maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-plugin-silent-notifications_7.0.0_1751996397301_0.627849146755874"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-08T20:53:45.704Z","modified":"2025-07-08T17:39:57.648Z","6.0.0":"2024-07-08T20:53:45.972Z","6.0.1":"2024-07-09T18:30:53.517Z","6.0.2":"2024-07-09T19:00:53.556Z","6.0.3":"2024-07-16T20:00:58.166Z","7.0.0":"2025-07-08T17:39:57.480Z"},"bugs":{"url":"https://github.com/greenygh0st/capacitor-plugin-silent-notifications/issues"},"license":"MIT","homepage":"https://github.com/daalex90/capacitor-plugin-silent-notifications#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/daalex90/capacitor-plugin-silent-notifications.git"},"description":"Allows an a Capacitor application to handle iOS remote/silent push notifications","maintainers":[{"name":"daalex90","email":"alexander.balleitner@gmx.at"}],"readme":"# capacitor-plugin-silent-notifications\r\n\r\nAllows a Capacitor application to handle iOS remote/silent push notifications.\r\n\r\n## Prerequisites\r\n- Must be using iOS 13 or later\r\n- Your app must be setup to receive push notifications (you need the device token)\r\n\r\n## Install\r\n[npm link](https://www.npmjs.com/package/capacitor-plugin-silent-notifications)\r\n\r\n```bash\r\nnpm install capacitor-plugin-silent-notifications\r\nnpx cap sync\r\n```\r\n\r\n## Add to AppDelete.swift\r\n```swift\r\nfunc application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {\r\n    // debug\r\n    print(\"Received by: didReceiveRemoteNotification w/ fetchCompletionHandler\")\r\n\r\n    // Perform background operation, need to create a plugin\r\n    NotificationCenter.default.post(name: Notification.Name(rawValue: \"silentNotificationReceived\"), object: nil, userInfo: userInfo)\r\n\r\n    // Give the listener a few seconds to complete, system allows for 30 - we give 25. The system will kill this after 30 seconds.\r\n    DispatchQueue.main.asyncAfter(deadline: .now() + 25) {\r\n        // Execute after 25 seconds\r\n        completionHandler(.newData)\r\n    }\r\n}\r\n\r\n// we just add this to deal with an iOS simulator bug, this method is deprecated as of iOS 13\r\nfunc application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {\r\n    // debug\r\n    print(\"Received by: performFetchWithCompletionHandler\")\r\n    \r\n    // Perform background operation, need to create a plugin\r\n    NotificationCenter.default.post(name: Notification.Name(rawValue: \"silentNotificationReceived\"), object: nil, userInfo: nil)\r\n\r\n    // Give the listener a few seconds to complete, system allows for 30 - we give 25. The system will kill this after 30 seconds.\r\n    DispatchQueue.main.asyncAfter(deadline: .now() + 25) {\r\n        // Execute after 25 seconds\r\n        completionHandler(.newData)\r\n    }\r\n}\r\n```\r\n\r\n## Add the listener to your Capacitor app\r\n```typescript\r\nimport { CapacitorSilentNotifications } from 'capacitor-plugin-silent-notifications'\r\n\r\nCapacitorSilentNotifications.addListener('silentNotificationReceived', async (payload) => {\r\n    // do something with the notification payload here\r\n    console.log('silentNotificationReceived', payload);\r\n});\r\n```\r\n\r\n## API\r\n\r\n<docgen-index>\n\n* [`addListener('silentNotificationReceived', ...)`](#addlistenersilentnotificationreceived-)\n* [`removeAllListeners()`](#removealllisteners)\n* [Interfaces](#interfaces)\n\n</docgen-index>\r\n\r\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### addListener('silentNotificationReceived', ...)\n\n```typescript\naddListener(eventName: 'silentNotificationReceived', listenerFunc: (payload: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle\n```\n\nListens to events associated with Silent Notifications\r\nand notifies the listenerFunc if a background notification has been received.\n\n| Param              | Type                                      | Description                                     |\n| ------------------ | ----------------------------------------- | ----------------------------------------------- |\n| **`eventName`**    | <code>'silentNotificationReceived'</code> | Name of the event                               |\n| **`listenerFunc`** | <code>(payload: any) =&gt; void</code>    | Function to execute when listener gets notified |\n\n**Returns:** <code>Promise&lt;<a href=\"#pluginlistenerhandle\">PluginListenerHandle</a>&gt; & <a href=\"#pluginlistenerhandle\">PluginListenerHandle</a></code>\n\n**Since:** 1.0.0\n\n--------------------\n\n\n### removeAllListeners()\n\n```typescript\nremoveAllListeners() => Promise<void>\n```\n\nRemove all listeners for this plugin.\n\n**Since:** 1.0.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### PluginListenerHandle\n\n| Prop         | Type                                      |\n| ------------ | ----------------------------------------- |\n| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |\n\n</docgen-api>\r\n","readmeFilename":"README.md"}