You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to invoke the native sharing interface when available in a project I'm working on, so that users can share the link to any platform they like, rather than only ones I've specifically added share links for.
The only alternative I can think of would be interfacing with JavaScript directly in my code. The proposed solution is clearly superior because it makes things much more convenient for anyone who wants to use the share API.
Does anyone know how to do this?
The text was updated successfully, but these errors were encountered:
Motivation
I would like to be able to invoke the native sharing interface when available in a project I'm working on, so that users can share the link to any platform they like, rather than only ones I've specifically added share links for.
Proposed Solution
Implement Navigator.canShare() and Navigator.share() in web_sys::Navigator.
Alternatives
The only alternative I can think of would be interfacing with JavaScript directly in my code. The proposed solution is clearly superior because it makes things much more convenient for anyone who wants to use the share API.
Does anyone know how to do this?
The text was updated successfully, but these errors were encountered: