Detect if iOS app is installed from within another app

前端 未结 1 1113
再見小時候
再見小時候 2021-01-27 10:03

I have a button on my iOS app that will launch a third party app via deeplinking, but if said app is not installed, the button will not do anything.

How can I check if

相关标签:
1条回答
  • 2021-01-27 10:19

    You can call canOpenURL: to check. Note that you need to declare the URL scheme in your info.plist before you can make the request. This is done using the LSApplicationQueriesSchemes key.

    0 讨论(0)
提交回复
热议问题