What is the equivalent of the Dropbox iOS app "fb: //"?

Sorry, I can say that I do not quite understand what I'm talking about. For example, to open the URL for Facebook, the prefix is ​​"fb: //". Does anyone know a prefix for Dropbox?

I am sure that there is one, because in the new Dropbox API (1.0) it opens the Dropbox application from your application to allow the user to log in, and the only way I know to do this is through one of those prefix things, which I do not know what they are called.

I really don't want to open the file in Dropbox. I really want to determine if Dropbox is installed on the iPhone, and the best way I can come up with this is to use this method (shown to determine if the Facebook application is installed).

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]]) { NSLog(@"Facebook is installed."); } else { NSLog(@"Facebook is not installed."); } 

If you know the best way to determine if this app is installed, share it.

+3
source share
1 answer

The only URL scheme specified in Dropbox Info.plist is dbapi-1 ; which should work on what you are trying to do.

Edit: just tried; it works (it says “installed” on my device with Dropbox and “not installed” in the simulator).

+5
source

Source: https://habr.com/ru/post/1397943/


All Articles