Wo kann man NSHealthShareusagedescription in Einheitstest ein Rahmen mit HealthKit einsetzen?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wo kann man NSHealthShareusagedescription in Einheitstest ein Rahmen mit HealthKit einsetzen?

by Anonymous » 02 Jun 2025, 17:33

Ich habe ein Framework, das verwendet: < /p>
_healthStore requestAuthorizationToShareTypes:writeTypes readTypes:readTypes completion:^(BOOL success, NSError *error) {
< /code>
Wenn ich das Framework in meine iOS-App einbeziehe und Folgendes in meine App Info.plist-Datei einfügt: < /p>
NSHealthShareUsageDescription
Read heart rate monitor data.
NSHealthUpdateUsageDescription
Share workout data with other apps.
< /code>
Alles funktioniert gut. Autorisierung. Dies ist Teil des Projekts, das sich in Objective-C befindet. Vor iOS 10 und Xcode 8 hat dies alles gut funktioniert.>

Top