Reputation: 8884
Using the showNotification method on a service worker registration, is it possible to style the notification that is shown, for example the color of the text?
I'm curious for both Android and desktop platforms.
Upvotes: 11
Views: 3537
Reputation: 8884
No, today it is not possible (January 2016).
The specification for this API doesn't include low level styling of this kind as the API should be OS and platform independent and each OS may have very different notification styling so allowing customization on a level like text color likely isn't appropriate.
It is possible that slightly more generic styling such as bold, italics, light text etc may be supported in the future and these would only apply on platforms that are able to render stylized text in notifications.
Upvotes: 12