nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 430 forks source link

Twitter share button doesn't work on Android 12 #484

Open sakabar opened 1 year ago

sakabar commented 1 year ago

Problem

I put this button on my web site, and pushed it on Android 12. Twitter application opened automatically, but the following message was shown.

The term you entered did not bring up any results. Please try again later.

Cause

The url of TwitterShareButton https://github.com/nygardk/react-share/blob/454860844d11d11d23112db1982feaf0ef4f1f09/src/TwitterShareButton.ts

    'https://twitter.com/share' +

According to the Twitter help page, the correct share url is https://twitter.com/intent/tweet .

[Twitter help page] How to add the Tweet button to your website https://help.twitter.com/en/using-twitter/add-twitter-share-button

Make a share button with the explained way. The url path of the share button is https://twitter.com/intent/tweet? ... .

When we access https://twitter.com/share, then it automatically redirect to https://twitter.com/intent/tweet normally. However, this doesn't work on Android OS.

sakabar commented 1 year ago

I made a PR #485 for this issue. I would be happy if you could merge this and publish a new version of react-share on npm.

R-Peleg commented 1 year ago

Did anyone manage to implement a workaround? I experience the same phenomenon in my application.

nipun-threestops commented 1 year ago

Did anyone manage to implement a workaround? I experience the same phenomenon in my application.

me also facing same problem.

carlos-ssh commented 1 year ago

Ey! anyone knows if is it fixed? I'm facing the same error with these buttons: twitter.url, pinterest.url, tumblr.url

Ciaran0 commented 1 year ago

I have forked the repo with a fix for the twitter share. I don't plan to actively maintain this fork but feel free to use it. @ciaran0/react-share

reply2sagar commented 11 months ago

please fix this asap. Everyone is having this issue!! https://github.com/nygardk/react-share/pull/485 needs to be merged

davidosaro commented 11 months ago

Please just checking if this issue has been fixed

rhtaylor commented 9 months ago

This is sill an issue. @sakabar how did you fix this?

sakabar commented 9 months ago

@rhtaylor I'm just waiting for merging #485.

If you're in a hurry, you can use a forked repo. https://github.com/nygardk/react-share/issues/484#issuecomment-1607217255

Alfrex92 commented 7 months ago

@sakabar it doesn't work for Android 12,13 and 14 (webview) 😢 . Any idea how to fix it?

marcinzygan commented 7 months ago

any chance on fix for this ? please :(

nygardk commented 7 months ago

Hey, this has been fixed in version 5.0.2.

sakabar commented 7 months ago

@Alfrex92 Sorry, I'm not sure. This issue is closed. So it might be a good idea to make a new issue for the problem.