Problems encountered during the use of HealthKit
The company's project needs to connect the heart rate band device. After referring to the implementation method of competing products, it decides to use the method of Reading System Health application data, that is, the Health application and Bluetooth heart rate band (BLE) communication reads real-time heart rate. Our App reads heart rate data from healthy applications within a certain period of time (3 s) as real-time heart rate.
Bluetooth device scanning, connection, reading connected devices, reading health data, and so on have not encountered too much trouble.
Question 1:
When packaging ipa and Applicaiton Loader, an error is reported during resource Verification:
Analysis:
I didn't use the write permission. Why should I add the description of the Key with the write permission to info. plist? Even if you do not want to understand it, you can only use it. After adding the package, you can upload the SDK normally. After installation, you will find that the read operation is declared while the write operation is not declared:
Question 2:
When TestFlight is used for internal distribution, click Submit for about a few seconds (simple machine review process). The following prompt is displayed and cannot be submitted. Apps with the permission [com. apple. developer. healthkit] must provide privacy policies for [Simplified Chinese.
No suitable answer is found on the Internet. It is ineffective to add a Privacy Policy URL in iTunes Connect-App Store-App information. I called Apple customer service at 4006701855 and asked me to go to Technical Support Incident (TSI). I only had to send emails within three working days. Finally, the website is hosted on the Apple developer website.
Originally
Add the Privacy Policy URL in TestFlight-App information-test information ). Submitted successfully.