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 browsers implement has no video field. Its visual content is limited to the title, body text, icon, badge, a single static image (supported in Chrome, Edge and Chrome for Android) and action buttons. There is also no property for a custom sound: the notification sound is chosen by the operating system, and the sender can only make a notification silent.
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.