On supported devices (which includes mobile browsers, Chromium and Edge on Windows, and Safari), there is the Web Share API. In particular, navigator.share() allows for showing a share popup of the OS, allowing to share the link to other apps we might not support: SMS messengers, Mastodon clients, etc. One can use navigator.canShare() to hide the button on unsupported devices.
[ ] pick an icon
[ ] implement method, similar to how "Copy URL" works
On supported devices (which includes mobile browsers, Chromium and Edge on Windows, and Safari), there is the Web Share API. In particular,
navigator.share()
allows for showing a share popup of the OS, allowing to share the link to other apps we might not support: SMS messengers, Mastodon clients, etc. One can usenavigator.canShare()
to hide the button on unsupported devices.