NSWidgetExtensionContext openURL Swift

后端 未结 4 1674
滥情空心
滥情空心 2021-01-12 15:08

I have been attempting to implement a button to open my iOS app from its widget. I realize this issue has been beaten to death on the forums but I cannot find explanation wi

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 15:37

    I often find the OS Status lookup site pretty useful to infer details from errors. An OS error with code -10814 is a kLSApplicationNotFoundErr, which describes the scenario when:

    No application in the Launch Services database matches the input criteria.

    It sounds like your application has not been properly registered with the system as a consumer of the URL scheme you are using. Have you double-double (double!) checked that the bundle identifier and URL scheme match? Have you verified that your app can be launched with the URL from Safari?

提交回复
热议问题