Find the URL scheme of an app on my iPhone

妖精的绣舞 提交于 2020-02-02 10:59:50

问题


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

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.


回答1:


Get yourself a copy of the "enterprise" version of iTunes that lets you download .ipa files direct from the App Store. (Mentioned, for example, here.) Now you can open the .ipa and examine its components.




回答2:


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)



回答3:


You can find URL scheme of any app in device Console if you connect your device to your computer and open the app. SpringBoard logs a lot of actions to the console, showing URL scheme every time.

e.g.

URL scheme for Firefox: org.mozilla.ios.Firefox

default 15:34:38.460964 +0100   SpringBoard [org.mozilla.ios.Firefox] Setting badge to (null) [ old badge: (null) ]


来源:https://stackoverflow.com/questions/52318063/find-the-url-scheme-of-an-app-on-my-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!