Closed SlimShadyIAm closed 3 months ago
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:
*** Terminating app due to uncaught exception '_HKObjectValidationFailureException', reason: 'HKDiscreteQuantitySample 28D6521E-928C-4889-A5A8-C7A4F7B5699D 30 ms (2024-08-21 16:10:24 +0200 - 2024-08-21 16:30:24 +0200) requires unit of type Mass. Incompatible unit: ms'
When testing on iOS and pressing "Add Data" the app throws an uncaught exception:
*** Terminating app due to uncaught exception '_HKObjectValidationFailureException', reason: 'HKDiscreteQuantitySample 28D6521E-928C-4889-A5A8-C7A4F7B5699D 30 ms (2024-08-21 16:10:24 +0200 - 2024-08-21 16:30:24 +0200) requires unit of type Mass. Incompatible unit: ms'
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.