Site icon Denis Bouquet

Mobile Twitter sharing not working on iOS

If you find yourself googling this, it’s a problem I had while testing sharing on mobile device. It’s works fine on Android but it didn’t share my tweet on iPhone, it just opened twitter home and did nothing. Here is why.

iPhone share on Twitter not working

It seems iOS is more restrictive than Android and to solve the issue and have my content sharing as expected I had to change:

“https://twitter.com/home?status=”+encodeURIComponent(description)

to

“https://twitter.com/intent/tweet?text=”+encodeURIComponent(description)

Hope that can help someone.

Exit mobile version