Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get all iOS url schemes on device

Tags:

ios

url-scheme

Is there a way to get all the url schemes of all the apps on a device? There has to be a central repository of them somewhere, maybe a plist?

like image 678
PruitIgoe Avatar asked Sep 04 '14 18:09

PruitIgoe


People also ask

How do I get iOS URL scheme?

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.

How do I find and use iOS URL schemes for shortcuts?

Open a specific shortcut using a URL scheme You can launch the app to a particular shortcut in your collection. Open a URL with the following structure: shortcuts://open-shortcut?name=[name] , and provide the name of the shortcut in the name parameter.

Does every app have a URL scheme?

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.)

What is iOS URL scheme?

A URL scheme is the part of a link that specifies the type of application your device uses to open a URL. Many apps support URL schemes: FaceTime uses URL schemes to place calls when a URL starting with facetime:// is opened, just like Safari handles URLs starting with http:// .


2 Answers

Adding my solution in case someone is still looking. After spending some time researching the answer, I finished off on a mix between @danielbeard's and @Avis' solution.

Because I know what application I am looking for:

  1. Download the .ipa from iTunes using my computer
  2. Copy the application to my desktop
  3. Rename it to *.zip
  4. Extract the *.zip
  5. Open the 'Payload' folder
  6. Right click on the application and select 'Show Package Contents'
  7. I then double-click the 'Info.plist' file (which Xcode should then open)
  8. Then check 'URL types' > 'Item 0' > 'URL Schemes'

Using that information I then add it to an array of apps to check (doing what @danielbeard suggested).

Hope this helps someone in the future.

like image 177
Greg Barbosa Avatar answered Nov 15 '22 20:11

Greg Barbosa


I'm going to go out on a whim here and assume you are trying to do the following:

  1. You have a PDF in your app.
  2. You want to check (programmatically) to see if any other app can open PDF files.
  3. If so, open PDF using that app.

If you want to do this, you don't have to do step 2 manually. As a matter of fact, you can't. However, you can use the UIDocumentInteractionController class to present a menu of compatible apps.

This is the only way you can "check" for other apps installed on the phone. At least on iOS 7 and under.

like image 25
JustAnotherCoder Avatar answered Nov 15 '22 20:11

JustAnotherCoder