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

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

Open
sakabar opened this issue Feb 26, 2023 · 13 comments
Open

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

sakabar opened this issue Feb 26, 2023 · 13 comments

Comments

@sakabar
Copy link

sakabar commented Feb 26, 2023

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
Copy link
Author

sakabar commented Feb 26, 2023

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
Copy link

R-Peleg commented May 31, 2023

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

@nipun-threestops
Copy link

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

me also facing same problem.

@carlos-ssh
Copy link

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

@Ciaran0
Copy link

Ciaran0 commented Jun 26, 2023

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
Copy link

please fix this asap. Everyone is having this issue!! #485 needs to be merged

@davidosaro
Copy link

Please just checking if this issue has been fixed

@rhtaylor
Copy link

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

@sakabar
Copy link
Author

sakabar commented Sep 25, 2023

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

If you're in a hurry, you can use a forked repo.
#484 (comment)

kutarkutakuta added a commit to kutarkutakuta/memory-cart that referenced this issue Oct 2, 2023
@Alfrex92
Copy link

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

@marcinzygan
Copy link

any chance on fix for this ? please :(

@nygardk
Copy link
Owner

nygardk commented Nov 19, 2023

Hey, this has been fixed in version 5.0.2.

@nygardk nygardk closed this as completed Nov 19, 2023
@sakabar
Copy link
Author

sakabar commented Nov 19, 2023

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

@nygardk nygardk reopened this Nov 19, 2023
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

Successfully merging a pull request may close this issue.