Open Twitter URL with app, instead of browser
Asked Answered
C

2

10

I've got the following URL:

http://twitter.com/share?url=http://example.com"

When clicked on iOS and Android, it opens the browser window. What's the best way to open this with the app (if they have it installed)?

EDIT:

I've changed the URL to

https://twitter.com/intent/tweet?text=example

But it still opens in the browser (I have the app installed). Does this require JavaScript or anything else to work?

Coenzyme answered 24/6, 2014 at 9:14 Comment(1)
Have you done it with an Intent?Typeset
R
1

You would use intents, as in How can I open a URL in Android's web browser from my application?

If the app is available the user gets to decide if the app should handle twitter URIs.

Resurrection answered 24/6, 2014 at 9:18 Comment(1)
Maybe this can help you further: omgwtfgames.com/2012/01/…Resurrection
S
0

I copy the URL and paste it into the Twitter app search field. It works; if it doesn't, remove "mobile" from the URL (as in https://mobile.twitter.com)

Straus answered 16/5, 2019 at 17:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.