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 like this, except I don't know what this string should be.
NSURL *myURL = [NSURL URLWithString:@"dropbox://"];
[[UIApplication sharedApplication] openURL:myURL];
Finding an App's Main URL Scheme Name First, you have to download the IPA file for the app, which requires macOS and Apple Configurator 2. When you finally find the IPA, you have to turn it into a ZIP file, show the contents of the app package, then hunt for the specific PLIST file that contains the scheme names.
Some app developers publish their universal URLs, and some do not. Not every app has a universal URL. (I.e., It may not be possible to create a 3rd-party app tile in Campus Cloud Studio to launch your app.)
Register your URL schemeRegister your scheme in Xcode from the Info tab of your project settings. Update the URL Types section to declare all of the URL schemes your app supports, as shown in the following illustration. In the URL Schemes box, specify the prefix you use for your URLs.
The only thing you can do with the Dropbox url-scheme is connect your Dropbox App to it. Like this:
var key = "[YOUR API KEY]";
var secret = "[YOUR API SECRET]";
var apiversion = "1";
window.open("dbapi-1://"+apiversion+"/connect?k="+key+"&s="+secret);
Normally the dropbox-app responses by opening your iOS app with the following scheme:
db-[YOU API KEY]://connect?oauth_token=SOMETOKEN&oauth_token_secret=SOMEOATHTOKEN&uid=SOMETHING
or with:
db-[YOU API KEY]://cancel
Got this from looking at the Dropbox SDK for iOS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With