
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.
@notifi-network/notifi-web-push-service-worker
Advanced tools
A package for receiving notifications on your PWA via web push
@notifi-network/notifi-web-push-service-worker
allows your PWA to subscribe to WebPush notifications
Take a look at our example implementation to see how to import and activate the worker React Example
Environment
If you haven't created a Notifi tenant account yet set up an account
In order to enable WebPush notifications, your dapp must
All alerts created via the notifi-frontend-client or notifi-react packages will automatically get published here once successfully initialized below.
import { initWebPushServiceWorker } from '@notifi-network/notifi-web-push-service-worker';
/* This is some class/object in your frontend app that is an appropriate place to start the notifications service.
Ensure authorization via wallet-sign or OIDC flow has succeeded before calling this. Calling before will result
in nothing happening */
export default function Home() {
React.useEffect(() => {
initWebPushServiceWorker()
}, []);
}
This will disable notifications coming in for WebPush. To manage alerts and other destinations, please continue to use the full notifi-frontend-client or notifi-react packages.
function unsubscribePushManger() {
navigator.serviceWorker.ready.then((reg) => {
reg.pushManager.getSubscription().then((subscription) => {
if (subscription) {
subscription
.unsubscribe()
.then((successful) => {
console.log("Successfully unsubscribe push manager")
})
.catch((e) => {
console.error("Failed to unsusbcribe push manager")
});
}
});
});
}
return (
<button
onClick={() => {
unsubscribePushManger();
}}
>
Unsubscribe push subscription
</button>
)
FAQs
A package for receiving notifications on your PWA via web push
We found that @notifi-network/notifi-web-push-service-worker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.