How can I extract the Custom URL Scheme from a .ipa file?
Asked Answered
B

3

10

I am trying to determine how to extract or get programmatically the Custom URL Scheme from a application .ipa file.

Is this possible?

Bawbee answered 27/7, 2011 at 14:1 Comment(0)
T
17

Yes, this is possible. First, unzip the .ipa file. (you can rename it with .zip to do this). Then, inside the .ipa file, you will find there is a Info.plist file. You can parse that file, look for "CFBundleURLSchemes" and you will see first the app id followed by the Custom URL if one is defined for the app.

Tandem answered 27/7, 2011 at 14:5 Comment(0)
V
9

So I went to iTunes on my mac and looked in my App Library for the "APP IN QUESTION".

I then: • Right-Clicked on the "APP IN QUESTION" app and selected “Show in Finder”

• then duplicated the "APP IN QUESTION" .ipa file

• Then I renamed the .ipa file to end in .zip instead (saying, yes make it a .zip if necessary)

• Then I unzipped it to a folder

• I opened the Payload Folder

• I right-clicked the “"APP IN QUESTION".app” and selected “Show Package Contents”

• I opened up the “Info.plist” file in a text editor like the free TextWrangler.app

• I searched for “URL” and found the following:

<key>CFBundleURLTypes</key>
            <array>
                <dict>
                  <key>CFBundleURLSchemes</key>
                  <array>
                       <string>app-in-question</string>
                       <string>sslapp-in-question</string>
                  </array>
               </dict>
            </array>

I was then able to successfully go to Safari and type in: app-in-question:// and sslapp-in-question:// and was prompted if I wanted to launch the App in Question.

Valdez answered 1/8, 2014 at 21:34 Comment(2)
You can also do this on a PC. Open the plist file using icopybot.com/plist-editor.htm iOS and Android apps usually share the same URL Schemes so this is one way to get at them for Android too.Opportunity
I did that, in my case info.plist is binary for all ipa files that I triedBrigidbrigida
C
3

Yes, you can just unzip the ipa (this just a zip file), open the < application >.app and look for the info.plist. It should contain any custom app URL schemes, if the app supports it.

Creatinine answered 27/7, 2011 at 14:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.