I am using push notifications on the web using the new service worker based API and have this use case:
Given the userVisible restrictions with the Push API, is there any way to achieve this experience?
Push notifications, when implemented properly, are resistant to interception or redirection and are, therefore, more secure than SMS.
The answer is “no” when we are talking about desktop devices like laptops and PCs. However, you can receive browser push notifications on your mobile device without opening your browser app. The only requirement to receive a push is an unlocked screen and an installed and activated browser app like Chrome.
To dismiss a notification, touch it and swipe left or right. Tap the dismiss icon to dismiss all notifications. On newer versions of Android, you can manage some notifications from the lock screen. Double-tap a notification to open the app or swipe left or right to dismiss the notification.
To the best of my knowledge this isn't possible, but it is a common feature request.
The main risk you have with sending a push message to hide a notification is that it may trigger a notification to be shown by the browser which has a message along the lines of:
"example.com performs an update in the background"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With