Problems encountered during the use of HealthKit

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.