Before attempting to save user data, make sure your app is authorized to share data using the HealthKit method.
Pele o ka sebedisa dikahare tsa tlatsetso fonong ya hao, ka kopo netefatsa hore tshebediso eo o e reretseng yona e fuwe laesense ka nepo kappa e dumelletswe.