3

Are HealthKit permissions needed from BOTH iOS and WatchOS?

I'm requesting authorization from watchOS which in-turn guides user to open the iOS app to acquire permissions. To transfer information I am using WatchConnectivity by creating a WCSession between the two devices.

Is it enough to present permissions from watch only?

4

1 回答 1

2

Your iOS app must implement applicationShouldRequestHealthAuthorization(_:) in its application delegate and call handleAuthorizationForExtension(completion:) on an HKHealthStore to complete the authorization request made by your iOS app. More details are available in the documentation here.

于 2017-06-24T18:02:29.843 回答