Skip to content
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

No longer displays on desktop - Chrome 89+ #69

Open
aamir-madari opened this issue Apr 24, 2021 · 3 comments
Open

No longer displays on desktop - Chrome 89+ #69

aamir-madari opened this issue Apr 24, 2021 · 3 comments

Comments

@aamir-madari
Copy link

The support for the Web Share API has been added to desktop as of Chrome 89. Therefore the polyfill no longer displays on desktop in Chrome/Edge.

The issue is the Windows equivalent isn't as great as it is on iOS and Android and lacks the ability to share on social media like in the polyfill.

Is there any way of utilising the polyfill rather than the native API? Can it be manually evoked via JS?

@valentinoli
Copy link
Contributor

valentinoli commented Jun 17, 2021

I don't think there is an option for that. As you can see here the polyfill is a fallback to navigator.share. So if navigator.share exists, then the browser's implementation is used and not the polyfill. Well, that's the definition of a polyfill I guess.

@valentinoli
Copy link
Contributor

valentinoli commented Jun 17, 2021

The Web Share feature in recent Edge and Chrome versions for Windows also appeared to me as really limited, there doesn't seem to be an option for sharing on social media which is arguably the most popular way to use it nowadays. However, this is because you might not have a Windows app for any social media installed and that supports sharing. The Twitter app in the Windows Store offers sharing. If you click on "Get apps in Store" I think you get a list of apps that support sharing.

@valentinoli
Copy link
Contributor

You might be able to do

navigator.share = undefined

before importing the polyfill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants