Get the full URL scheme and path for any iOS application

I followed the instructions below:

How to extract custom URL scheme from .ipa file?

And I was able to get the basic URL scheme. For example, for the Hulu application, I got:

"Guinea://"

But I really want to figure out how to get the remaining information so that I can directly link the Hulu application to a specific video. I know that for Hulu the URL scheme is this:

"hulu: // w / id number for the video "

But I was able to get this by going to the Hulu website and seeing that they redirect me using the above diagram. Is there a way to calculate the complete circuit using an .ipa file or something else?

There are 7 or 8 applications for which I am trying to get a diagram. The first part is simple, the second part is complex.

+4
source share
2 answers

If you don't need to do this programmatically, you can just search for applications at http://handleopenurl.com/ - they have a great list of URL schemes. The wiki http://wiki.akosma.com/IPhone_URL_Schemes also has an exhaustive list.

When developers create their own URL patterns, they register the base pattern ( hulu:// ), and later they expand and map the URLs programmatically. Example below:

 - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { NSLog(@"url recieved: %@", url); NSLog(@"query string: %@", [url query]); NSLog(@"host: %@", [url host]); NSLog(@"url path: %@", [url path]); NSDictionary *dict = [self parseQueryString:[url query]]; NSLog(@"query dict: %@", dict); return YES; } 

When compiling, the code that reveals the steps becomes unreadable, so you can no longer extract this information, which in turn will not help you. I suggest you turn to the developers of the applications in question, they have a complete understanding of these schemes!

+4
source

Full resolution of the scheme is performed in the code (handleOpenURL in AppDelegate), which cannot be read after compilation, so you cannot get it from the IPA.

There are several lists of application URL schemes:

..but none of them gives hints of hulu. Contacting the developer may be the best solution.

Hope this helps.

0
source

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


All Articles