Custom URL Scheme
カスタムURLスキーム
独自の Scheme とそれに紐付くアプリケーションを登録して、リンクのクリック時にブラウザから呼び出してもらうもの。
JavaScript だけではどうにもならず、アプリケーションのインストール(正確にはスキームとアプリケーションの紐付けの登録)が必要になる。
PWAでもそのままでは登録ができないため無理のはず。
Apple
https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app
Windows
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/web-to-app-linking
Windows 10 ではこちらを使うべきらしい
https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN
https://stackoverflow.com/questions/32694642/registering-an-application-to-a-uri-scheme-in-windows-10
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/b8979f61-6076-4628-951c-3c55e4be493b/custom-url-scheme-in-windows?forum=windowsgeneraldevelopmentissues