Sync Apple Health Data to Google Drive

Set up automatic syncing of health data to Google Drive.

Last updated: February 5, 2026

Google Drive automations allow you to automatically backup your health data to Google Drive. Files can be exported in JSON or CSV format. CSV files can optionally be converted to Google Sheets.

Overview

Google Drive automations automatically upload your health data to a specified folder in your Google Drive account. Files are organized by date range (day, week, month, or year) and can be accessed from any device with Google Drive access.

Use Cases:

  • Automatic cloud backup of health data
  • Accessing health data from multiple devices
  • Sharing health data with healthcare providers
  • Long-term data archival
  • Creating Google Sheets for analysis and collaboration
  • Integration with Google Workspace tools

Limitations:

  • Health Data Access: Apps are not allowed to access health data while iPhone is locked. Automations will only run during periods when your device is unlocked. This can affect data freshness. See instructions for manual syncing to keep data up to date.

  • Background Processing: iOS limits background processing to preserve battery life. Automations rely on Background App Refresh and may not run immediately if:

    • Background App Refresh is disabled for the app
    • The device is in Low Power Mode
    • The device has been inactive for extended periods
    • System resources are constrained
    • Multiple apps are competing for background execution time

Prerequisites

  • A Google account
  • Internet connectivity
  • Google Drive access enabled

Configuration

Navigate to the Automated Exports screen from the main navigation, then tap New Automation" and select "Google" as the Automation Type.

Automation Name

Enter a descriptive name for your automation (e.g., "Daily Health Backup", "Weekly Health Export"). This name will be used as the folder name in Google Drive.

Notifications

Configure when you want to receive notifications:

  • Notify on Cache Update - Receive a notification when cached data is updated
  • Notify When Run - Receive a notification each time the automation uploads data

Google Drive Connection

Before configuring other settings, you must connect your Google account.

Connecting Google Drive

  1. Tap "Connect Google" button
  2. You'll be redirected to Google's authorization page
  3. Sign in to your Google account if prompted
  4. Review the permissions requested by the app
  5. Tap "Allow" to authorize the app
  6. You'll be redirected back to the app

Note: The app requests access to create and manage files in your Google Drive. It only accesses folders it creates and does not access your entire Google Drive.

Permissions Requested:

  • View and manage files in your Google Drive
  • Create and edit Google Sheets (if converting to Sheets)

Managing Connection

After connecting, you can manage your Google Drive connection:

  1. Tap "Manage Connection" in the Google configuration section
  2. View your connection status
  3. Reconnect if needed
  4. Disconnect if you want to use a different account

Connection Status Indicators:

  • Connected: Green checkmark or connection confirmed
  • Disconnected: Red warning or "Connect Google" button visible

Folder Name

Enter the name of the folder in Google Drive where your health data will be saved.

Folder Name Examples:

  • Health Data
  • Daily Backup
  • Health Exports
  • My Health Metrics

Note: The folder will be created automatically in your Google Drive root directory if it doesn't exist. The app creates a root folder called "Health Auto Export" and then creates subfolders based on your folder name.

Data Type Settings

Data Type

Select which type of health data to export:

  • Health Metrics - Steps, heart rate, sleep, and other health measurements
  • Workouts - Exercise and fitness activities
  • Symptoms - Health symptoms and conditions
  • ECG - Electrocardiogram readings
  • Heart Rate Notifications - High/low heart rate events
  • State of Mind - Mood and mental state entries (iOS 18.0+)
  • Cycle Tracking - Menstrual cycle and reproductive health data
  • Medications - Medication logs and adherence (iOS 26.0+)

Health Metrics Configuration

When Health Metrics is selected:

Select Health Metrics - Choose which specific metrics to include. You can select all available metrics or choose specific ones.

Tip: Selecting only the metrics you need can reduce file size and improve upload speed.

Preferred Sources - Configure which data sources take priority when multiple sources provide the same metric.

Workout Configuration

When Workouts is selected:

Include Route Data - Toggle ON to include routesx for workouts that have location data.

Include Workout Metrics - Toggle ON to include health metrics collected during workouts (heart rate, calories, etc.).

Note: Including workout metrics requires additional data lookups and can increase file size and processing time.

Time Grouping (Workout Metrics) - When using Export Version 2 and Include Workout Metrics is enabled:

  • Minutes - Groups workout metrics by minute
  • Seconds - Groups workout metrics by second

Export Settings

Export Format

Select the format for your exported data:

  • JSON format - Provides detailed data structures with nested objects. Best for applications, databases, and detailed analysis. JSON format includes more detailed information for complex data types like sleep phases and AFib readings.

  • CSV format - Provides tabular data that can be easily imported into spreadsheet applications. When "Convert to Google Sheet" is enabled, CSV files are automatically converted to Google Sheets format.

Tip: Use JSON for comprehensive data storage and CSV for easy viewing and collaboration.

Export Version

Select an Export Version. Versioning allows transitioning between updated versions of the export at your own pace and minimizes breaking changes to workflows.

  • Version 1 - Legacy format, use if you have existing workflows that depend on this format
  • Version 2 - Current format with enhanced workout data and more detailed metadata options

Convert to Google Sheet

When using CSV format, toggle "Convert to Google Sheet" ON or OFF.

  • ON - CSV files are automatically converted to Google Sheets format (default)
  • OFF - CSV files are uploaded as regular CSV files

Benefits of Google Sheets:

  • View and edit data directly in Google Drive
  • Share sheets with others easily
  • Use Google Sheets features (charts, formulas, etc.)
  • Access from any device with Google Drive
  • Collaborate in real-time

Note: This option only applies when Export Format is set to CSV. JSON files are always uploaded as JSON files.

Date Range

Select how data should be organized into files:

  • Day - Creates separate files for each day
  • Week - Creates separate files for each week
  • Month - Creates separate files for each month
  • Year - Creates separate files for each year

File Organization:

  • Files are named based on the date range they contain
  • Each file contains all data for that time period
  • Files are saved in the folder specified in Folder Name
  • The app creates a root folder "Health Auto Export" and subfolders based on your folder name

Summarize Data

When using JSON format with Health Metrics data type, toggle Summarize Data ON or OFF.

  • ON - Provides aggregated data summaries (default)
  • OFF - Provides disaggregated data where possible, showing individual data points

Note: This setting only applies to JSON format with Health Metrics. Data is always aggregated when using CSV format or when multiple metrics are selected.

Time Grouping

Select how data should be aggregated within each file. Available options depend on the selected Date Range:

Note: More granular aggregation (minutes/hours) creates larger files but provides more detailed data. Less granular aggregation (days/weeks/months) creates smaller files with summarized data.

Sync Cadence

Configure how often the automation should upload data to Dropbox:

Select a number and interval.

Testing & Verification

Manual Testing

  1. Tap "Manual Export" in the automation configuration screen
  2. Select a date range
  3. Tap "Export" to upload a file
  4. Check your Google Drive folder to verify the file was uploaded

Verifying Files in Google Drive

  1. Open the Google Drive app or website
  2. Navigate to "Health Auto Export" folder
  3. Open the subfolder matching your automation's folder name
  4. Verify files are present with expected names and dates
  5. Check file sizes to ensure data was uploaded correctly
  6. Open a file to verify the data format is correct

For Google Sheets:

  • Files appear as Google Sheets
  • Can be opened directly in Google Sheets
  • Supports real-time collaboration

For JSON/CSV Files:

  • Files appear as regular files
  • Can be downloaded or opened with compatible apps
  • JSON files can be viewed in text editors

Viewing Activity Logs

  1. Tap "View Activity Logs" in the automation configuration screen
  2. Review recent automation runs
  3. Check for upload errors or connection issues
  4. Verify upload timestamps

Troubleshooting

Common Issues

"Token error: No Google token found. Try connecting Google again."

  • Tap "Connect Google" to authorize the app
  • Ensure you completed the authorization process
  • Check that you tapped "Allow" on the Google authorization page
  • Verify your Google account is active

Connection/Token Errors

  • Tap "Manage Connection" to reconnect
  • Verify your internet connection
  • Check that your Google account is active
  • Re-authorize the app if tokens have expired
  • Ensure Google Drive is enabled for your account

Files Not Appearing in Google Drive

  • Check your internet connection
  • Verify the folder name is correct
  • Navigate to "Health Auto Export" > [your folder name]
  • Check Activity Logs for upload errors
  • Ensure the automation is enabled

Error Messages

The app will display error messages if:

  • Google Drive connection fails
  • Upload fails due to network issues
  • Google Drive storage quota is exceeded
  • Invalid folder name or path
  • Token refresh fails
  • Google Sheets conversion fails

Check the Activity Logs for detailed error information including HTTP status codes and Google API error messages.

Tips and Best Practices

  1. File Format:

    • Use JSON for comprehensive data storage
    • Use CSV with Google Sheets conversion for easy viewing and collaboration
    • Consider your use case when choosing format
  2. Google Sheets:

    • Enable "Convert to Google Sheet" for CSV files you want to view/edit
    • Use Google Sheets for collaboration and sharing
    • Leverage Google Sheets features (charts, formulas, pivot tables)
    • Share sheets with healthcare providers if needed
  3. Data Selection:

    • Select only the metrics you need to reduce file size
    • Consider creating separate automations for different metric groups
    • This helps organize data and reduces individual file sizes
  4. Access:

    • Files can be accessed from any device with Google Drive
    • Use Google Drive mobile app for easy access
    • Access files from web browsers on any device
    • Files sync automatically across devices
  5. Integration:

    • Use Google Sheets with other Google Workspace tools
    • Export data to other formats from Google Sheets
    • Use Google Apps Script for automation
    • Integrate with other services that can access Google Drive