react-share
react-share copied to clipboard
Twitter share button doesn't work on Android 12
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.
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.
Did anyone manage to implement a workaround? I experience the same phenomenon in my application.
Did anyone manage to implement a workaround? I experience the same phenomenon in my application.
me also facing same problem.
Ey! anyone knows if is it fixed?
I'm facing the same error with these buttons: twitter.url
, pinterest.url
, tumblr.url
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
please fix this asap. Everyone is having this issue!! https://github.com/nygardk/react-share/pull/485 needs to be merged
Please just checking if this issue has been fixed
This is sill an issue. @sakabar how did you fix this?
@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
@sakabar it doesn't work for Android 12,13 and 14 (webview) 😢 . Any idea how to fix it?
any chance on fix for this ? please :(
Hey, this has been fixed in version 5.0.2
.
@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.