本文介绍了在应用程序中检测WatchKit扩展的存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,如果您配对的Apple Watch上安装了WatchKit扩展程序,我希望它在更新和缓存方面的行为与其他应用程序有所不同。如果watchkit扩展程序有启动的机会(您已经将手表配对并安装了应用程序),那么我想进行更多的高速缓存。

I have an app that I want to behave a bit differently when it comes to updates and caching if a WatchKit extension is installed on your paired Apple Watch than if it is not. If the watchkit extension has any chance of launching (you have paired a watch and the app is installed) then I want to do more heavy caching.

我有什么办法吗?可以从我的iOS应用程序检测Apple Watch上是否安装了Apple WatchKit Extension?除了在第一次启动时设置标志并希望以后不会将其删除?

Is there any way I can detect whether an Apple WatchKit Extension is installed on the Apple Watch from my iOS app? Other than setting a flag first time it is launched and hope it isn't deleted thereafter?

欢呼声

Nik

推荐答案

我将重申我给。无法检测手表是否已通过编程方式与手机配对。

I'll reiterate the answer I gave here. There's no way to detect whether or not a Watch has been paired with the phone programmatically.

这篇关于在应用程序中检测WatchKit扩展的存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 16:56