Skip to content
WebViewGold Vibe Coding to App Store
English
Get WebViewGold

Native feature

HealthKit and Health Connect for vibe-coded apps

Steps, heart rate, weight and water from the phone's health store, in your web app, with the review rules both stores apply to health data. Pick your builder.

From $109 one-time per platform, or let our team do it all from $698.

  • Approval guarantee – or money back within 14 days
  • No coding needed
  • One-time payment, free updates
  • 24/7 human support
  • Made in Germany since 2014 · ISO 27001

How health data reaches your web app

Read a value

Navigate to readhealthkit:// plus a type: an Apple identifier such as HKQuantityTypeIdentifierStepCount on iOS, a record name such as StepsRecord on Android. The result is injected as a JavaScript variable with the same name, as a value-and-unit string (for example "8421.0 steps").

Write a value

writehealthkit://Identifier//Value saves a value, for example writehealthkit://HKQuantityTypeIdentifierStepCount//100 on iOS or writehealthkit://StepsRecord//1000 on Android. On Android the variable then reads WRITE_SUCCESS or the error text.

Platform differences

iOS: HealthKit is a WebViewGold plugin, activated with a plugin token in HealthKitEnabled (Config.swift) plus the HealthKit capability. Android: Health Connect needs Android 8.0 or newer, is built into Android 14 and later, returns today's totals, and injects "Health Connect not supported" where it is unavailable.

Connect health data step by step

Plan a day, including the store paperwork.

  1. Pick the few data types you really use

    Steps for a walking challenge, weight for a coaching program, water for a hydration tracker. Both stores want every requested type justified, so do not request everything "for later".

  2. iOS: activate the HealthKit plugin

    Request the plugin token through the contact address in the iOS docs, set HealthKitEnabled in Config.swift, add the HealthKit capability in Xcode and write both purpose strings in Info.plist: Privacy - Health Share Usage Description and Privacy - Health Update Usage Description.

  3. Android: keep Health Connect permissions minimal

    Health Connect grants access per record type, and the app can only read or write the types it requests. Check the health permissions in the Android project's manifest, keep the ones you use, and prepare the Health apps declaration in the Play Console.

  4. Detect the platform with your user agent

    Set custom user agents with distinct tokens, for example one ending in WebViewGold-iOS (useragent_iphone, useragent_ipad) and one ending in WebViewGold-Android (USER_AGENT). Your code then picks the HealthKit identifier or the Health Connect record name.

  5. Read, show, and fall back

    Trigger the read inside the app only, wait briefly for the injected variable, and show the value with a clear source ("from Apple Health"). On iOS, run several reads one after another, not in the same script tick. In a browser, offer manual entry.

  6. Write only real data

    Write values the user actually produced or entered, such as a logged walk. Writing estimates or test data into Apple Health breaks Guideline 5.1.3(ii).

Frequently asked questions

Can a web app read Apple Health data?

Not from Safari: HealthKit has no web API. Inside a native app it can. WebViewGold reads the value natively after a readhealthkit:// call and injects it into the web app as a JavaScript variable.

Is the same code used for HealthKit and Health Connect?

The URL schemes are the same (readhealthkit:// and writehealthkit://); only the type names differ: HealthKit identifiers such as HKQuantityTypeIdentifierStepCount on iOS, record names such as StepsRecord on Android. Map them in one helper.

Will Apple reject an app that uses HealthKit?

Not if health and fitness are a real part of the app. Rejections come from HealthKit used outside health and fitness, health data used for ads, false data written to Health, and integrations that are not explained. Mention Apple Health in your description and show the integration clearly in the UI.

Three ways to get your app into the stores

Same result, different amount of work on your side. All three come with the approval guarantee and 24/7 human support.

Do it yourself

$109 per platform, one-time

The WebViewGold license: a finished Xcode or Android Studio project. Paste your URL, set name and icon, switch on features, build and submit. Free updates forever.

See plans on the main page

Cloud Builder

$349 per license, one-time add-on

No Mac, no Xcode, no Android Studio: configure in the browser, we build both apps in the cloud and hand them to App Store Connect and the Play Console.

How the Cloud Builder works Try the free demo

Full Service

$698 per platform $798

Send us your URL and icon. Our team configures, builds and delivers your app within 72 hours, white-label, with source projects. Both platforms for $1,158.

Full Service details Powered by WeSetupYourWebViewApp

Winter Sale prices valid until December 31, 2026.

Ready to ship your app?

App Store & Google Play approval guarantee – or your money back within 14 days

Rather hand it over? Full Service: we configure, build and deliver within 72 hours, from $698 per platform. Questions? Chat with us 24/7.

Refunds are granted under the conditions listed in our FAQ: a non-content rejection by Apple and/or Google, claimed within 14 days after purchase.