Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PWAで共有機能を実装する / pwa-web-share-api

Yuhei FUJITA
December 15, 2021

PWAで共有機能を実装する / pwa-web-share-api

Yuhei FUJITA

December 15, 2021
Tweet

More Decks by Yuhei FUJITA

Other Decks in Programming

Transcript

  1. 渡されるPath HTTP Method (GET or POST) 渡される情報の定義 GETの場合はqueryとして渡される Web Share

    Target APIの設定 manifest.jsonに設定内容を定義 例:GET /foo?title=aaa&text=bbb&url=ccc https://web.dev/web-share-target/
  2. 参考文献 • Navigator.share() - Web API | MDN ◦ https://developer.mozilla.org/ja/docs/Web/API/Navigator/share

    • Web Share API Level 2 - Chrome Platform Status ◦ https://chromestatus.com/feature/4777349178458112 • Receiving shared data with the Web Share Target API ◦ https://web.dev/web-share-target/