Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 watchOS 1 或 watchOS 2 中是否有可能获得内置锻炼应用程序的实时数据,或者我需要创建自己的锻炼应用程序才能做到这一点?
如果我制作了自己的应用程序,我是否仍然能够像内置应用程序那样将锻炼存储在 Activity 应用程序中?
很老的问题,但尽管如此......
您需要创建自己的 WatchKit 应用程序来开始锻炼并从 Watches HealthKit 数据库发送消息。
您必须在 Watch 上创建一个 StreamingQuery 并向 iPhone 上的配套应用程序发送带有数据的消息。
或者,您可以简单地查询 iPhone HealthKit 数据库,但数据从 Watch 同步到手机时可能会有很大的时间。
是的,您将能够在 HealthKit 中创建和存储您自己的锻炼