Contents

About Notifications for Websites

Describes how to send local and push notifications to Safari users.

At a Glance

This document explains the key concepts of notifications for websites and how to implement them in your ecosystem.

Users Control Their Notifications

Review the preferences available to users to better understand how to implement your notification service.

Relevant Chapter: Understanding the User Experience

Safari Push Notifications Are Deployed from Your Server

In OS X v10.9 and later, you can send push notifications to your website users. Safari doesn’t need to be open for the notification to appear, and your visitors have control over their notification settings on a per-website basis.

Relevant Chapter: Configuring Safari Push Notifications

Local Notifications Are Invoked with JavaScript

In OS X v10.8 and later, you can tap into Notification Center through a JavaScript API. After visitors grant permission to receive local notifications, you can trigger notifications to appear as long as the webpage remains in an open tab.

Relevant Chapter: Configuring Local Notifications

See Also

Next

Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09