workout 0.6.5 copy "workout: ^0.6.5" to clipboard
workout: ^0.6.5 copied to clipboard

Run a workout session on Wear OS and Tizen. Get data such as heart rate in real time.

workout #

Run a workout session and get live health data from Wear OS and Tizen. Also start a watchOS app from iOS.

Getting Started #

Wear OS #

Health Services for Wear OS are currently in beta

android/app/build.gradle:

minSdkVersion 30

android/app/src/main/AndroidManifest.xml:

<!-- Required for heart rate -->
<uses-permission android:name="android.permission.BODY_SENSORS" />
<!-- Required for calories, steps, distance, speed -->
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
<!-- Required to use location to estimate distance, speed -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Tizen #

This plugin requires Tizen 4.0+.

Make the following changes to tizen/tizen-manifest.xml:

<manifest api-version="4.0" ...>
    <privileges>
        <privilege>http://tizen.org/privilege/healthinfo</privilege>
    </privileges>
    <feature name="http://tizen.org/feature/sensor.heart_rate_monitor">true</feature>
    <feature name="http://tizen.org/feature/sensor.pedometer">true</feature>
</manifest>

iOS #

Flutter cannot run on watchOS, but there is a method on iOS to start the watch app. Calling the start method on iOS will call startWatchApp with the given parameters. The following requirements must be met for this to function:

  • Both the phone and watch apps must have the HealthKit entitlement
  • The watch app must have the Workout Processing background mode enabled

Supported data types #

Feature Wear OS Tizen
Heart rate Yes Yes
Calories Yes Yes
Step count Yes Yes
Speed Yes Yes
Distance Yes Yes
15
likes
160
pub points
71%
popularity

Publisher

verified publisherrexios.dev

Run a workout session on Wear OS and Tizen. Get data such as heart rate in real time.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter, flutter_plugin_android_lifecycle, flutter_tizen, permission_handler, permission_handler_tizen

More

Packages that depend on workout