I would like to be able to launch the DropBox app within my app. Therefore I would like to know if the DropBox app has a URL scheme that I can use to call openURL, something
If you need to open a specific file in the iOS Dropbox app, you can use this trick:
dbapi-6://1/viewLink?url= prefix.Attention: this is not documented and may change in future releases.
The whole code should look like this:
// `yourURLString` is the URL string you want to open
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"dbapi-6://"])
{
NSString *encodedFileURLString =
[yourURLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *fullURLString =
[@"dbapi-6://1/viewLink?url=" stringByAppendingString:encodedFileURLString];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:fullURLString]];
}
else
{
// Otherwise open Safari
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:yourURLString]];
}