Demos/email-client
Patrick Brosset 53c095ebe2 Revised all READMEs
Added links to all demos from their README files.
Made a table in the root-level README to link to all demos.

Fixes #9.
2022-08-25 11:34:48 +02:00
..
img Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
README.md Revised all READMEs 2022-08-25 11:34:48 +02:00
demo.html Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
index.html Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
manifest.json Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
script.js Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
style.css Simple protocol handler demo app 2021-12-03 14:36:21 +01:00
sw.js Simple protocol handler demo app 2021-12-03 14:36:21 +01:00

README.md

Protocol handling demo - Email client

➡️ Open the demo ⬅️

This is an email client installable app (which doesn't actually send and receive emails) meant to demonstrate the PWA protocol handling feature.

App

The demo shows a list of received emails, and a compose button that displays a panel to compose a new email when clicked.

The app can be installed on the device, and upon installation will register a protocol handler for mailto.

When a mailto link is used, the operating system should propose the installed demo app as a choice to the user to handle that link. If the user chooses this demo app, it will be launched, and the compose panel will appear, pre-filled with the email address.

The 2 interesting pieces of code here are:

  • The protocol_handlers member in the manifest.
  • The way protocol handling requests are detected and used in script.js.

How to test