You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please select any browsers that you are experiencing problems with:
[ - ] Chrome
[ - ] Firefox
[ - ] Opera for Android
Samsung Internet Browser
Other
asyncfunctiononNotify1(){// VAPID keys should be generated only once.constwebPush=awaitimport('web-push')webPush.setGCMAPIKey('AIzaSyDNlm9R_w_0FDGjSM1fzyx5I5JnJBXACqU')// This is the same output of calling JSON.stringify on a PushSubscriptionconstpushSubscription={endpoint: '.....',keys: {auth: '.....',p256dh: '.....'}}webpush.sendNotification(pushSubscription,'Your Push Payload Text')}
The text was updated successfully, but these errors were encountered:
NOTE: Please test in a least two browsers (i.e. Chrome and Firefox). This
helps with diagnosing problems quicker.
Setup
Operating System:
Node Version: <v20.13.1>
web-push Version: <^3.6.7>
The text was updated successfully, but these errors were encountered: