Open Health and go to an App's permission via URL Scheme
Asked Answered
W

1

11

Can we link directly to Sources then my app? I tried to open an URL like x-apple-health://sources/MyApp but it only open Sources and not goes directly to MyApp. Anyone knows if that's even possible?

EDIT: this is not a duplication of Open HealthKit App from another app as I know how to open Health app itself - I would like to know whether it's possible to go directly to an app's permissions, not just the general Sources tab.

Wachtel answered 1/6, 2018 at 12:3 Comment(1)
thx @hardikbar but my question is a bit more concrete than thatWachtel
S
3

No, there is no way to do this. Even x-apple-health://sources is undocumented and therefore not supported. You should file a bug with Apple.

Sidonie answered 3/6, 2018 at 16:39 Comment(4)
thx @Sidonie - I've filed a suggestion report at Apple. Will keep this question updated.Wachtel
@Roosevelt No progress I guess?Mcmanus
@PiotrDawidiuk yeah no progress... I didn't even get an answer from Apple :/Wachtel
no way. i found it. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"x-apple-health://"]];Verein

© 2022 - 2024 — McMap. All rights reserved.