For the complete documentation index, see llms.txt. This page is also available as Markdown.

How do I check if the HealthKit prompt was shown?

HealthKit doesn't expose whether permissions were granted, but you can check whether a connection was previously created

HealthKit doesn't expose whether permissions were granted, but you can check whether a connection was previously created:

1

Initialise the Terra SDK.

2

Call getUserId.

A non-null user ID means the connection exists (the permission screen was already shown); null means it wasn't. Use this to conditionally drive your UI.

Last updated

Was this helpful?