LoginSignup
7

More than 5 years have passed since last update.

Safari Push Notifications の調査

Posted at

MacOSへの通知 Safari Push Notifications について調べてみた内容をまとめます。

概要

日本語 (公式ページより)

Apple プッシュ通知サービスを使用すると、ウェブサイトのユーザーの Mac デスクトップに通知を送信できます。Safari が起動していなくても通知は機能します。プッシュ通知にはウェブサイトのアイコンと通知テキストが表示され、ユーザーがこれをクリックするとウェブサイトにアクセスできます。

英語 (公式ページより)

OS X Mavericks introduces a powerful new way to keep users engaged with your website. You can now use the Apple Push Notifications Service to send notifications to your website users, right on their Mac desktop — even when Safari isn’t running. Safari Push Notifications work just like push notifications for apps. They display your website icon and notification text, which users can click to go right to your website.

背景

それまでMacOSアプリからの通知だけだったのがWWDC 2013でWebサイトへの通知ができるようになったと発表された。

今今、あまり注目されていないのは、私が無知だったのか?
MacOSユーザ+Safariで利用するユーザの割合が低く投資対効果が期待できないからなのか?
少しでもユーザ接点を増やせるので、やるべきだと思うのだが。。
シェアも含めて調べたい。

仕組み

About Notifications for Websites - Appleのドキュメント

通知の作り方は2種類 APNs を使う方法と、
ローカル JavaScriptを使って通知を作る方法がある。

仕様は追って下記ドキュメントを調査。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7