Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find the URL scheme of an app on my iPhone

Apple maps can open routing apps when it can't provide a route:

Apple Maps showing Routing Apps

I want to open a few of those apps from my app. I am aware that I have to whitelist each app that I want to open. This is not the problem.

How can I find out the url schemes of those Apps that are installed on my iPhone?

One idea is to make a backup via iTunes and at the info.plist of the app. In this plist, the url schemes should be defined with the cfbundleurlschemes key.

I think I found such an app in a backup, but I don't know how to extract the file to get the info.plist file. adding .zip and extracting doesn't work.

Other ways to get the URL scheme are also welcome, especially ways to get example parameters of the URL scheme of an app. So looking at Apple Maps how it opens a specific routing app would be nice.

Yes I know how to open Google Maps. I want to know how to open those where I can't find a documentation.

So how can I find out URL schemes of routing apps on my iPhone?

There is an answer that suggests to extract the .ipa file, but there aren't .ipa files with iOSA 11 any more.

like image 746
Gerd Castan Avatar asked Sep 13 '18 16:09

Gerd Castan


People also ask

How do I find the URL of an app on my iPhone?

Find app link via App Store on iOS devices Step 1: Go to the Apple App Store on your iOS device. Step 2: Search for your app and go to the app page. Step 3: Tap the Share Sheet button on the top right of the screen, then choose Copy Link.

How do I find the URL for an app?

Go to Google Play and search for your app by name. Once you find your app, click on it to be taken to the App Profile. This is where you will see your App download URL.

What is URL scheme in iOS?

URL schema is used as an identifier in launching applications and performing a set of commands in iOS devices. The schema name of a URL is the first part of a URL. (e.g. schemaname:// ). For web pages, the schemas are usually http or https.

What is app URL scheme?

URL Schemes are an advanced configuration option used to define a non-standard link format that will only open in your app and not the device browser e.g. youruniquestring://yoursite.com/path This functionality is helpful in authentication redirect flows or for a more seamless user experience.


2 Answers

This article was incredibly helpful:

https://www.amerhukic.com/finding-the-custom-url-scheme-of-an-ios-app

Basically:

  1. Download the app to your phone
  2. Install the program iMazing on your mac
  3. Connect your phone to your mac
  4. Download the ipa file from your phone to your mac

Then

  1. Make the ipa file a zip (rename) and extract
  2. Show the package content from the .app file in the Payload folder
  3. Search and open the Info.plist file
  4. Search for CFBundleURLSchemes. Here are your url schemes.
like image 76
Gabriel Weidmann Avatar answered Sep 18 '22 00:09

Gabriel Weidmann


The way I do it. Download the app "Iconical". It's an app used to create other icons to access an app. Once installed, tap "Select App" then hit refresh and you get a list of urls of all the apps with a url Scheme set up.

If the app I want is not in the list. Than I open the iPhone console, go to the AppStore, find the app and open it from there. Then look for its bundle identifier in the iPhone console and use the last part as url scheme. Ex.: com.cie.appName. This always worked for me. Hope this helps.

UIApplication.shared.open("appName://", options: [:], completionHandler: nil)
like image 31
Mecan0 Avatar answered Sep 21 '22 00:09

Mecan0