GoCarrot / teak-ios

Teak SDK for iOS
Apache License 2.0
3 stars 1 forks source link

Deal with canOpenURL and own schemes #29

Closed AlexSc closed 4 years ago

AlexSc commented 4 years ago

At least as of iOS 9.3.5, canOpenURL requires you to include your own schemes in LSApplicationQueriesSchemes.

We should either document this or work around it.

There are a couple of workarounds:

  1. Check if the scheme is in our list of registered schemes, and if so skip the canOpenURL check
  2. Always skip the canOpenURL check and blindly openURL

I'm genuinely not sure what happens if you blindly openURL to a url that cannot be handled. We should investigate that.