I want to build a fitness app that will upload the data to HealthKit. Is there any way to open/navigate to HealthKit from another app?
HealthKit is the developer framework behind it that allows apps to work with Apple Health and each other. If you're confused about how the Apple Health app works, what type of information you need to get the most out of it, and which apps are compatible, keep reading.
Step 1: Launch the Health app. Step 2: Tap your profile from the top right of either the Today or Health Data tabs. Step 3: Select Export Health Data and confirm the action by tapping Export. Step 4: You will see the export being prepared and once it finishes, your sharing options will appear.
The app pulls heart rate, blood pressure, body temperature, weight, nutrition, respiratory rate, and blood glucose in from HealthKit so users can choose to share it with their doctor during a video call.
On iOS 10, the Health app URL scheme is x-apple-health
. You can open it from within your own app by calling:
Objective-C:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"x-apple-health://"]];
Swift:
UIApplication.shared.open(URL(string: "x-apple-health://")!)
See Open Health app using url scheme | Apple Developer Forums.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With