-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client: add native sharer #1035
Conversation
4dfdd9c
to
2ca1e6e
Compare
It is not supported outside of Chrome, and even there it is behind a flag. It probably should not be merged yet. |
This is supported by Safari in addition to Chrome on Android so it is time to add this. |
I successfully shared a link on Chrome for Android. Though, currently, the sharers have a bug, where they will include some accessibility markup. Also on desktop Chromium, the button is shown, even when there are no targets, resulting in |
Also this feature is secure-context only (HTTPS). |
using Web Share API for browsers that support it https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share Note that this is still experimental and it will also only work in secure contexts (HTTPS). Closes: #719
Use ES6 syntax selfoss.shares.register now has the following signature: (name: String , id: String , fontawesomeIconClass: String , ({url: String, title: String} -> Void ) -> bool
During the accessibility improvements we changed the structure of entry title but forgot to update the sharers to reflect the changes.
Instead of just “facebook” or “pocket”, use “Share on Facebook” and “Save to Pocket” as the labels and tooltips of the sharing buttons. This will make it slightly clearer. This again changes the signature of selfoss.shares.register: (name: String , id: String , label: String , fontawesomeIconClass: String , ({url: String, title: String} -> Void ) -> bool
so that users can register their own with emoji icons. Also update NEWS.
Using Web Share API for browsers that support it
Closes: #719