keyboard_backspace wifi_off

Incoming Call Notifications

This feature is not (yet) supported on your device

Incoming call notifications allow web apps to display notifications when an incoming call is received. This is useful for Web RTC messaging apps to notify the user that they have an incoming call.

When the notification has its scenario option set to "incoming-call", the notification will be persistent until an action is clicked and a ringtone will be played.

Click the button below to simulate an incoming call and see the notification appear. Turn up the volume on your device to hear the ringtone.

const title = "Incoming Call"; const options = { scenario: "incoming-call", body: "Incoming Call", actions: [ { action: "accept-audio-call", title: "audio", icon: "https://whatpwacando.today/src/img/audio-call.png" }, { action: "accept-video-call", title: "video", icon: "https://whatpwacando.today/src/img/video-call.png" } ] }; const registration = await navigator.serviceWorker.getRegistration(); try { await registration.showNotification(title, options); } catch (err) { console.error(err); }

Documentation

Incoming Call Notifications explainer on GitHub

Browser support

Incoming Call Notifications are supported as an origin trial in Microsoft Edge 140+ on Windows.

What PWA Can Do Today A showcase of what is possible with Progressive Web Apps today