when I using canOpenURL to open universal link, (target app is installed)
canOpenURL return true, but app is not opening (LSApplicationQueriesSchemes are not registered)
but if I use open(_ url, options) app is opening
If I am responsible for not registering LSApplicationQueriesSchemes, how do I register Universal's links to LSApplicationQueriesSchemes? (https://www.aaa.com)
<key>LSApplicationQueriesSchemes</key>
<array>
<string>https://www.aaa.com</string>
</array>
like this?
If AAA is the app that you're trying to open, there is another way to launch it from inside your app. You will need to grab the
CFBundleURLSchemesthat the target app uses.For AAA its "aaamobile" For AAA Auto Club its "aaamobileace"
You then need to add the url schemes into your plist:
And then in your code you can check to see if the app is installed and launch the app or take user to website: