-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Health]: Remove Google Fit support #1014
Conversation
a20952a
to
6aa6d77
Compare
6aa6d77
to
3979573
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Remember to add entry to CHANGELOG and bump version before publishing. |
When testing on iOS and pressing "Add Data" the app throws an uncaught exception:
|
Fixed - when writing health datapoints, we weren't checking if the data type is available on the platform. The example app was trying to write Android-exclusive data. |
Google will soon be turning down support for Google Fit in favor of Google Health Connect in the coming months, and as such we have previously planned to remove support for it in the
health
plugin.This PR includes also includes a cleanup of the Android code and updates to the documentation.
Changelog
useHealthConnectIfAvailable
from the parameters ofHealth().configure()
HealthWorkoutActivityType
s which were supported by Google Fit. Some of these do not have suitable alternatives in Google Health Connect (and are not supported on iOS). The list of removed types include:MOVE_MINUTES
AEROBICS
BIATHALON
BIKING_HAND
BIKING_MOUNTAIN
BIKING_ROAD
BIKING_SPINNING
BIKING_UTILITY
CIRCUIT_TRAINING
CROSS_FIT
DIVING
ELEVATOR
ESCALATOR
GARDENING
HORSEBACK_RIDING
HOUSEWORK
IN_VEHICLE
INTERVAL_TRAINING
KAYAKING
KETTLEBELL_TRAINING
KICK_SCOOTER
KITE_SURFING
MEDITATION
MIXED_MARTIAL_ARTS
P90X
POLO
RUNNING_JOGGING
RUNNING_SAND
SKATING_CROSS
SKATING_INDOOR
SKATING_INLINE
SKIING_BACK_COUNTRY
SKIING_KITE
SKIING_ROLLER
SLEDDING
STANDUP_PADDLEBOARDING
STILL
TEAM_SPORTS
TILTING
TREADMILL
VOLLEYBALL_BEACH
VOLLEYBALL_INDOOR
WAKEBOARDING
WALKING_FITNESS
WALKING_NORDIC
WALKING_STROLLER
WALKING_TREADMILL
WINDSURFING
ZUMBA
OTHER
workout type on Androiddisconnect
method which was previously used to disconnect from Google Fit.flowRate
value fromwriteBloodOxygen
as this is not supported by Health Connect.