Your app's user interface (UI) should focus on articulating the benefits of using Health Connect, and explain key concepts in a way that enhances user knowledge of what an integration entails.
Your user experience (UX) should adhere to three guiding principles:
- Consistency: Ensure that flows are aligned throughout the integration process.
- Transparency: Be up front in explaining how Health Connect works alongside your app.
- Clarity: Help users access Health Connect through your app.
At a high-level, the UX flow can be broken down into the following stages:
Promote Health Connect
Showcasing Health Connect in your app depends on the UX patterns and conventions established in your UI.
Focus on the user benefit
The first time you introduce Health Connect to users, aim to offer a meaningful reason for them to make use of your integration.
Rather than describing Health Connect's features, tailor your message to how a user benefits from those features.
Use clear language
Don't ask users to "Connect to Health Connect." This is a jarring sentence and may also confuse a user's understanding of the relationship between apps in the Health Connect ecosystem.
Your UX should help users form an idea of how Health Connect interacts with your app, so it's important to consider which button labels work best toward achieving that goal.
Try using verb phrases like "set up" or "get started" on your button labels. Or, if you're launching the permissions view, use more specific button text, like "Choose data to share."
Promote Health Connect
Here are a few ways you can promote Health Connect in your app:
- As part of your app's setup flow
- With a card in your app's home screen
- Through an entrypoint within a Settings screen
- With an Android 13 APK download button for Android 13 versions and lower
- When promoting new data types
- With a modal or dialog when updating the app, similar to the app's setup flow
App setup and requesting permissions flow
Home Screen Promo Card Flow
Settings
Android 13 APK Download
Onboard new data type(s) and requesting permissions
Apps that already have a Health Connect integration can request new data types in addition to the already granted ones.
Only the new data type(s) requested should be shown in the permissions screen, to avoid confusing users.
The following are a few examples of how to promote new data types(s):
Reuse existing conventions
If your app already promotes new data in other ecosystems, we recommend doing the same for Health Connect in Android, and adapt the language where relevant.
Emphasize the value proposition
Why would users want to use this data in your app?
- Examples: reading the data
- Gives users more accurate insights in your app
- Users can see all data in one place in your app
- Example: writing the data
- Users can share this new data from your app with other compatible health and fitness apps on their phone
Contextualize permissions
Ask for new permissions where it makes sense for users, so they know what's being asked of them.
Examples:
- Ask for exercise routes permission after users finish a workout in your app.
- If your app implements new permissions, show these together in one promo on the home screen.
- If you have a dedicated section in your app, for example Sleep, promote the corresponding permission there.
Revoked and cancelled permissions
Your app's Settings screen should show users how to revoke permissions to Health Connect data types:
Insufficient access
If your app has insufficient Health Connect access, users should be presented with the following screen across all entry points:
Permissions cancelled twice
If the user selects Cancel on the permissions request screen twice in a row, your app should present the user with a screen similar to the following:
Reading & displaying data
To build trust and assure users that their data is being read correctly,
it's important to show users how your app obtains data, which comes from the
packageName
property of the DataOrigin
class.
There are two ways to achieve this:
Basic attribution
At a minimum, your user interface (UI) should display the app source icon and name (or only the app name if the icon can't be shown). Basic attribution is suitable for the following screens: Home, Activity log, and Activity details.
Attribution with education
Your app should help users obtain information about where data originates from, with a direct link to the "App permissions" screen in Health Connect. This type of attribution is suitable for the following screens: Activity details, Reports and insights.
Data Sync
If there's enough latency when syncing your app with Health Connect, we recommend that your app show this notification while the data is syncing. This informs the user that something is happening and that it may take a while to finish.
Assets
Product icons should be used on a white or a very light gray background. You may also use the icon on a black background if necessary.
Download the following icons: