How to create an alarm clock with Mozilla Notifications

Asked

Viewed 141 times

0

Hello,

I am developing an agenda in JSP, the agenda is already fully ready, missing only warn an alarm clock that I am wanting to do, the same should work as follows..

From x time before the events marked with "remember" I want to send a notification to the user.. Example: Event at 19:00, when it is 18:45 I want to send a message: "15 minutes to your event X."

By what I researched I can do this using Mozilla Notifications: https://developer.mozilla.org/en-US/docs/WebAPI/Alarme

Someone has done something similar, knows how to use Mozilla Notifications along with this question of time?

Thank you

  • Fernando, the API Alarm works only on Mozilla Firefox, an alternative is to use Push API, this is supported by the Firefox, Chrome and Opera, but you will have to send the notification from your Server, the advantage is that it works even if the page is closed.

  • Sounds good.. I will research and if it solves my problem I put as it was here.. Thanks for the idea

  • Unfortunately, that doesn’t solve my doubts.. In fact only replaces the use of Mozilla Notifications, I still need a way to stipulate the times for them to appear...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.