I am using a document based application. When other applications, such as dropbox, start my application to open the file, I get from this method the identifier of the package of the application that launched me (dropbox).
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
Now I would like to put a button that says “Return to Dropbox” and launch the Dropbox app. However, I will need to know the URL scheme in order to open it this way.
[[UIApplication sharedApplication] openURL:myURL];
Is there a way to get the app url scheme from the package id?
I see that in Info.plist, when setting up the URL scheme for my application, the package identifier is also specified. Therefore, I believe that there should be a way to get one value from another.
thanks,
source share