Reputation: 4929
Currently using the HTML5 Notification API, it works like a charm. Except that I want the Notification to stay at least 10 seconds, because there is quite some text inside it.
I read something about recreating periodically the notification when it is destroyed and it was not a user input (for exemple, the notification is destroyed because of the timeout, BAM, resend). Though it seems a bit overkill for what I want to do and a bit hackish too. Is there a simple way to keep my notification alive for a few more seconds ?
Upvotes: 3
Views: 412
Reputation: 4929
There is actually no way to achieve such a goal, at least for Firefox and Safari. That's part of the implementation of the standard which defines Notification API. Although on Chrome it is possible because Chrome doesn't close automatically the notification so you have to declare a timeout to close it. This timeout can be as long as you want.
Seems like the Notification API could be improved though.
Upvotes: 2