Published
Edited
Jan 24, 2020
Insert cell
md`# Web Push Notification

## Standardized Notification interface Properties

Standard web push notifications interface can be seen in MDN docs: [https://developer.mozilla.org/en-US/docs/Web/API/notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)

## BySide Push notification campaign content

The following object represents the valid campaign content data structure. This data must be converted to a valid JSON value.
`
Insert cell
CampaignContent = ({
body: "<String>",
icon: "<URL String>",
image: "<URL String>",
tag: "<String>",
data: {
url: "<URL String>",
},
title: "<String>",
// Safari specific values which are created based on the previous values
aps: {
alert: {
title: "<Notification.title>",
subtitle: "",
body: "<Notification.body>",
},
"url-args": ["<Notification.data.url>"],
category: "<Notification.tag>",
},
});
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more