web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.69k stars 295 forks source link

[ask] is it possible dismiss an existing notification? #314

Closed BlurryFlurry closed 6 months ago

BlurryFlurry commented 3 years ago

Is it possible to cancel() (dismiss) an existing notification? or update an existing notification? If it is possible, how do you do that?

8Ozymandias commented 3 years ago

Hello @BlurryFlurry are you aware if it's possible that when one clicks on a notification if it's possible that it can open up the browser and go to a specific website and or section on that website?

BlurryFlurry commented 3 years ago

Hello @BlurryFlurry are you aware if it's possible that when one clicks on a notification if it's possible that it can open up the browser and go to a specific website and or section on that website?

yes

tahir1002 commented 3 years ago

I used renotify and tag properties in the options object in Service Worker to update/replace the existing notification

renotify: true,
tag: 'some_tag',