Hi, I can't find any documentation, or even a place to ask this
question, so sorry if this is off-topic...
I'm an iOS developer, and I'd like to attempt to open the Twitter app
on the device, (from my app) at a particular profile, or even in a
state to @mention a particular username. Currently I can do this...
BOOL didOpenOtherApp = NO;
if ([device respondsToSelector:@selector(isMultitaskingSupported)]
&& [device isMultitaskingSupported]) {
NSString *urlString = [NSString stringWithFormat:@"twitter://
%@", USER_NAME];
didOpenOtherApp = [NSApp openURL:[NSURL
URLWithString:urlString];
}
if (!didOpenOtherApp) {
NSString *urlString = [NSString stringWithFormat:@"https://
twitter.com/%@", USER_NAME];
didOpenOtherApp = [NSApp openURL:[NSURL
URLWithString:urlString];
}
And, if the user has Twitter for iPhone installed, then it'll open,
but it won't go to that profile or anything, so, it responds to twitter://
but not anything in the actual URL, that I can make out.
So, essentially, I'm just wondering if there is any documentation on
the format of the URL strings that are meaningful to Twitter on iOS
devices, and if it's even possible to do what I'm trying here? I'd
love to be able to launch the app and put it into a state ready for
posting a new tweet, maybe something like: twitter://tweet@<USER_NAME>
Thanks
Dan