From the course: iOS Development: Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

URL scheme whitelist

URL scheme whitelist

From the course: iOS Development: Architecture

Start my 1-month free trial

URL scheme whitelist

- [Instructor] If we wanna look up a specific URL scheme, we need to specify it in a white list. Although we can create it for multiple schemes, the white list can only contain a limited number of URLs. And here's how to define the white list. We'll have to add the LSApplicationQueriesSchemes key to our info property list. So, I click the plist in the project navigator, and let's add this key, LS. Its type should be array, so I'm gonna change it from string to array. Next, we need to add the values we wanna white list. We only need to white list the Listener app. Now, let's view it and run the app. We've got a different error message this time. The operation couldn't be completed. So the query works, all we need is to install the Listener app. I do that by running it from Xcode again. Everything works as expected.

Contents