I'm trying to figure out which iOS application will open the given URL.
I know that the URLs “http: // ...” will open in Safari and that, for example, the URLs “twitter: // ...” will open in a Twitter application, but is there any way to get this information programmatically?
I am looking for a method that I can call with a URL (or just a scheme / protocol) to find out the package identifier (or even just the localized name) of the application that will be called when -openURL is called.
Is there something like the following?
[UIApplication handlerForURL:someUrl];
source share