react-share icon indicating copy to clipboard operation
react-share copied to clipboard

Twitter share button doesn't work on Android 12

Open sakabar opened this issue 1 year ago • 13 comments

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 avatar Feb 26 '23 02:02 sakabar

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.

sakabar avatar Feb 26 '23 02:02 sakabar

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

R-Peleg avatar May 31 '23 11:05 R-Peleg

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

me also facing same problem.

nipun-threestops avatar Jun 02 '23 07:06 nipun-threestops

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

carlos-ssh avatar Jun 06 '23 17:06 carlos-ssh

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

Ciaran0 avatar Jun 26 '23 10:06 Ciaran0

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

reply2sagar avatar Jul 24 '23 11:07 reply2sagar

Please just checking if this issue has been fixed

davidosaro avatar Aug 09 '23 12:08 davidosaro

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

rhtaylor avatar Sep 25 '23 15:09 rhtaylor

@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 avatar Sep 25 '23 15:09 sakabar

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

Alfrex92 avatar Nov 12 '23 11:11 Alfrex92

any chance on fix for this ? please :(

marcinzygan avatar Nov 17 '23 10:11 marcinzygan

Hey, this has been fixed in version 5.0.2.

nygardk avatar Nov 19 '23 08:11 nygardk

@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.

sakabar avatar Nov 19 '23 10:11 sakabar