In the context of fetching health data using the Dart code snippet provided, I noticed that the HealthDataPoint object retrieved does not include a field for database update time or last modified time. In native platforms, this information is typically available.
One Response record looks like:
Is there a specific method or property within the plugin (health) to retrieve the database update time for each record?
If not directly available through the plugin, what are the recommended approaches or workarounds to obtain the database update time or last modified time for health data records fetched using this plugin?
Any guidance or insights into this matter would be greatly appreciated. Thank you.
Dart Code-
try { List<HealthDataPoint> healthData = await HealthFactory().getHealthDataFromTypes( yesterday, now, grantedPermissionsDatatypes, ); _healthDataList.addAll(healthData); } catch (error) { log("Exception in getHealthDataFromTypes: $error"); }
In the context of fetching health data using the Dart code snippet provided, I noticed that the HealthDataPoint object retrieved does not include a field for database update time or last modified time. In native platforms, this information is typically available. One Response record looks like:
HealthDataPoint - value: 42, unit: COUNT, dateFrom: 2024-06-04 17:00:00.000, dateTo: 2024-06-04 17:01:00.000, dataType: STEPS, platform: PlatformType.ANDROID, deviceId: UP1A.231005.007, sourceId: , sourceName: com.fitbit.FitbitMobile
Is there a specific method or property within the plugin (health) to retrieve the database update time for each record?
If not directly available through the plugin, what are the recommended approaches or workarounds to obtain the database update time or last modified time for health data records fetched using this plugin?
Any guidance or insights into this matter would be greatly appreciated. Thank you.