Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you configure multiple iOS URL Schemes

Tags:

ios

url-scheme

Is it possible to register multiple URL schemes that are associated with different app ids for the same app. For example I have separate apps per environment of my application each with their own unique bundke id. E.G

com.test.app-dev (testapp-dev://)
com.test.app-qa (testapp-qa://)
com.test.app (testapp://)

If I want to launch the dev app from a url, I would use want to use testapp-dev://

like image 345
Fergal Rooney Avatar asked Oct 13 '25 02:10

Fergal Rooney


1 Answers

What I did (in Xcode 12)

Targets -> Your App -> Build Settings -> + -> Add User-Defined setting ->

Setting: URL_SCHEME

Value: yourapp-debug, yourapp, yourapp-test etc. for different schemes.

Targets -> Your App -> Info -> URL Types

URL Schemes: $(URL_SCHEME)

define value use value

like image 166
Esben von Buchwald Avatar answered Oct 14 '25 19:10

Esben von Buchwald