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

Why does Health Connect re-prompt permissions on init?

On Android with Health Connect, initTerra automatically re-requests permissions when the device previously had a connection and the user still exists…

On Android with Health Connect, initTerra automatically re-requests permissions when the device previously had a connection and the user still exists server-side (for example after an app uninstall and reinstall), in order to restore connection state. It does not prompt users who never connected.

To avoid the prompt:

  • When switching accounts on the same device, deauthenticate the previous user before initialising for the new one. Periodic deauth of long-inactive users also keeps connections and billing quota clean.

  • On iOS, debug builds can change the device ID the SDK picks up, making each install look like a new connection. iOS also re-prompts whenever the requested permission set changes between releases, so always call initConnection with a constant, explicit list of CustomPermissions rather than an empty array.

If the prompt appears on devices that never enabled the connection, share a user_id or reference_id so support can check connection state, and update to the latest SDK.

Last updated

Was this helpful?