Question: How to attach video and sounds to web pushes?
Answer: Video and custom notification sounds are not supported in web push notifications, and this is a browser/OS limitation rather than a Pushwoosh one.
The Notifications API that all browsers implement supports only the following content: title, body text, icon, badge, a single static image (Chrome, Edge and Chrome for Android), and action buttons. There is no video field. The sound property that once appeared in early drafts was never shipped by any browser and has been removed from the specification — the notification sound is chosen by the operating system, not by the sender.
What you can do instead:
- use the
imagefield to attach a large static picture (for example, a video thumbnail); - link the notification to a landing page or in-app screen that plays the video;
- use action buttons to give the user a direct "Watch" action.
Reference: MDN — Notification API.
Comments
0 comments
Please sign in to leave a comment.