Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
cordova-plugin-service-worker-notifications
Advanced tools
This is a wrapper around cordova-plugin-local-notifications that conforms to the standard web notification API. This plugin also enables the use of local notifications from within a service worker script.
Creating a new notification is as simple as
var myNotification = new Notification("Hello World");
It is also possible to specify options with your notification.
var options = {
body = "My Notification Body", // Secondary notification text
tag = "uniqueTag", // An identifier for retrieving and modifying a notification
icon = iconURI, // Only available on android
sound = soundURI, // URI of a sound file to be played
sticky = true // Prevents a user from removing a notification
};
var optionalNotification = new Notification("Hello World", options);
To update an existing notification, create a new notification with the same tag. It will automatically be updated with the new notification's properties. Closing a notification is also very simple.
myNotification.close();
To create a notification from within your service worker script, use
showNotification(myTitle, options);
Every notification you create in the service worker context persists until it is clicked or closed. These notifications will remain active even if your app is closed. You can get a list of existing notifications by using
getNotifications(filter).then(function(notifications) {
//Do something with your notifications
...
});
dir
, lang
, renotify
, silent
, and noscreen
FAQs
Service Worker Notification Plugin
The npm package cordova-plugin-service-worker-notifications receives a total of 2 weekly downloads. As such, cordova-plugin-service-worker-notifications popularity was classified as not popular.
We found that cordova-plugin-service-worker-notifications demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.