
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@deriv/web-push-notifications
Advanced tools
Download | Guide | Sample |
---|
Download Pushwoosh Web Push SDK and unzip it. You should have the following files: manifest.json
, pushwoosh-service-worker.js
Place all these files to top-level root of your website directory.
Open manifest.json and make the following changes:
gcm_sender_id
to your Sender ID. Please keep in mind that Sender ID is usually a 12-digit number, and it can't contain any letters.Include manifest.json in <head>
<link rel="manifest" href="/manifest.json">
via npm
npm install web-push-notifications --save
via html
<script type="text/javascript" src="//cdn.pushwoosh.com/webpush/v3/pushwoosh-web-notifications.js" async></script>
import {Pushwoosh} from 'web-push-notifications';
const pwInstance = new Pushwoosh();
pwInstance.push(['init', {
logLevel: 'info', // possible values: error, info, debug
applicationCode: 'XXXXX-XXXXX', // you application code from Pushwoosh Control Panel
safariWebsitePushID: 'web.com.example.domain', // unique reverse-domain string, obtained in you Apple Developer Portal. Only needed if you send push notifications to Safari browser
defaultNotificationTitle: 'Pushwoosh', // sets a default title for push notifications
defaultNotificationImage: 'https://yoursite.com/img/logo-medium.png', // URL to custom custom notification image
autoSubscribe: false, // or true. If true, prompts a user to subscribe for pushes upon SDK initialization
subscribeWidget: {
enable: true
},
userId: 'user_id', // optional, set custom user ID
tags: {
'Name': 'John Smith' // optional, set custom Tags
}
}]);
pwInstance.push(function(api) {
console.log('Pushwoosh ready');
});
Chrome Guide | Firefox Guide | Safari Guide | HTTP integration Guide | Subscription Button Guide |
---|
FAQs
Pushwoosh web push notifications
The npm package @deriv/web-push-notifications receives a total of 14 weekly downloads. As such, @deriv/web-push-notifications popularity was classified as not popular.
We found that @deriv/web-push-notifications demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.