- Home /
Why does my twitter code not work? - iOS
float startTime;
startTime = Time.timeSinceLevelLoad;
Application.OpenURL ("twitter:///user?screen_name=PlusIntStudios");
if(Time.timeSinceLevelLoad - startTime <= 1f)
Application.OpenURL("https://twitter.com/PlusIntStudios");
This code opens Twitter to the correct place, but then it swaps to Safari and opens the twitter webpage. I am using the exact same code for Facebook and that works fine, so whats the deal with my Twitter code not working?
Comment
Answer by KruegerT · May 02, 2014 at 05:27 PM
Try inserting a yield after you call the first OpenURL.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Post Data on Twitter 1 Answer
Adding features, eg online multiplayer android/ios 1 Answer
How to use option setting Vibrate and Mute 1 Answer
Catching DLLImport errors 1 Answer