demo · v140
Scenario Comparator
The new scenario field tells the OS how a notification should behave. Switch between default, urgent and incoming-call and see what changes: ring vs ping, persistence, action prominence, sleep override.
default
urgent
incoming-call
self.registration.showNotification("Lawrence", {
scenario: "incoming-call",
// tells the OS this is a ringer, not a ping;
// long-press shows you the action set, etc.
});
see also
- Incoming Call Notifications — feature index
- NotificationOptions spec