tjmelo / tmx-mercury

The project proposal is to show a listed county for states in Brazil :fire:
https://tjmelo.github.io/tmx-mercury/
0 stars 1 forks source link

Include message Notification #69

Closed tm-wd closed 7 months ago

tm-wd commented 8 months ago

Suggestion

Include in app a message notification for new or recurrent users.

Code example:

Notification.requestPermission(function() {
 if (Notification.permission === 'granted') {
 // user approved.
 // use of new Notification(...) syntax will now be successful
 } else if (Notification.permission === 'denied') {
 // user denied.
 } else { // Notification.permission === 'default'
 // user didn’t make a decision.
 // You can’t send notifications until they grant permission.
 }
});
tjmelo commented 7 months ago

Included logic for permission Notification in app.

notify-print

PR: https://github.com/tjmelo/tmx-mercury/pull/75