Reputation: 1080
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?
Upvotes: 3
Views: 847
Reputation: 7353
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.
Upvotes: 2