데스크탑 알림 조사(with RoR)

데스크톱 알림


https://www.lanches.co.jp/blog/6723
https://qiita.com/otolab/items/72ac10a0880ea411d77e
https://tech.speee.jp/entry/2017/12/21/111404
https://tech.mercari.com/entry/2017/12/19/workbox

대략적인 절차



프로그램 라이브러리


Gem


webpush

  • Ruby의 응용에 Web Push의 기능을 추가합니다.

  • 생성VAPID Key.
  • 키를 사용하는 서버 클라이언트 간의 보안 통신
  • 통지의 발행.
  • serviceworker-rails

  • Rails에 대응PWA.
  • Assets 등은 시작할 때 컴파일되어 동적 으로 파일 이름을 결정하기 때문에 원시적Service Worker으로 대응할 수 없다.
  • Npm


    Workbox

  • GooglePWA의 창고를 구축하는 데 쓰인다.
  • PWA와 관련된 여러 가지를 간단하게 실현할 수 있다.
  • 기준 이외의 일을 시키면 잘 할 수 없다.
  • 키워드


    VAPID (Voluntary Application Server Identification)


    https://qiita.com/tomoyukilabs/items/9346eb44b5a48b294762
    https://tools.ietf.org/html/rfc8292
    Abstract
    An application server can use the Voluntary Application Server
    Identification (VAPID) method described in this document to
    voluntarily identify itself to a push service. The "vapid"
    authentication scheme allows a client to include its identity in a
    signed token with requests that it makes. The signature can be used
    by the push service to attribute requests that are made by the same
    application server to a single entity. The identification
    information can allow the operator of a push service to contact the
    operator of the application server. The signature can be used to
    restrict the use of a push message subscription to a single
    application server.

    수수께끼

  • manifest.json 정보원에 따라 필요하거나 필요하지 않습니다.
  • 스마트폰 홈페이지에 앱으로 추가할 때 필요한 설정
  • 페이지를 불러올 때 구독을 확인하거나 버튼을 통해 구독을 확인합니다.
  • 버튼 등으로 구독하는 것이 유행입니다.
  • 방문자에게 부담을 주지 않기 위해
  • https://mizchi.hatenablog.com/entry/2017/12/05/223520
  • 좋은 웹페이지 즐겨찾기