Using twitter:// tweetie:// custom scheme on iPhon

2019-03-26 15:07发布

问题:

I thought I was familiar with the applications custom schemes used with iOS to trigger applications from my app but I'm unable to use the ones that seems to be provided by the official twitter app (aka tweetie).

I'm trying to open the twitter application directly to a predefined user profile.

From the documentation found here http://handleopenurl.com/scheme/twitter this should be feasible, but this code doesn't work :/ :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://user?id=41553213"]];

I also tried with tweetie:// but the same happens : the application launches, but does not "jump" to the given user profile. Actually, if I try any of the other examples, I don't get anything working :(

twitter://messages
twitter://mentions
none of them are working :(

Any idea why none of those invocations are working ? Thanks.

N.B:I'm using the last version of the twitter application under iOS 3.1.3 (iphone 3G)

回答1:

very strange, after removing the application, downloading it again from the appstore, it appears it works ? :O Maybe I wasn't exactly on the very last one ?! At first I thought it was because I had multiple accounts set up, but no, even with that it works now. Strange, but cool.