Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What sections of Apple Health app are available via the x-apple-health:// URL scheme?

Tags:

url

ios

healthkit

I want let users view the Weight section of Apple's Health app to allow them to see detailed data, etc. I manage to open the Health app via the URL scheme x-apple-health://, but I would like to send them directly to the right place, e.g. x-apple-health://HealthData/measurements/Weight. I have had no success after trying different paths that made some sense.

Anyone has a reference on this?

like image 795
François Legras Avatar asked May 10 '19 13:05

François Legras


People also ask

What is app URL scheme?

The app: URL scheme can be used by packaged applications to obtain resources that are inside a container. These resources can then be used with web platform features that accept URLs.

What is URL scheme in iOS?

A URL scheme allows you to launch a native iOS application from another iOS app or a web application. You can set options in the URL that will be passed to the launched application.

What features does Apple Health have?

The Health app gathers health data from your iPhone, Apple Watch, and apps that you already use, so you can view all your progress in one convenient place. Health automatically counts your steps, walking, and running distances. And, if you have an Apple Watch, it automatically tracks your Activity data.


1 Answers

Apple has not documented the x-apple-health:// scheme for use by apps. Attempting to use it is like using SPI - even if you find something that works now, it is likely to break in a future version of iOS. You should file a Radar with Apple to request an API for this purpose.

like image 168
Allan Avatar answered Sep 19 '22 00:09

Allan