-
Notifications
You must be signed in to change notification settings - Fork 696
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 11.1.0] NullPointerException in getHealthAggregateDataFromTypes (Android Health Connect) #1083
Labels
bugfix
a bug fix
Comments
I have same issue.
My
My log:
|
On iOS, it does not even throw any exception. |
SAME PROBLEM, is there a fix to it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plugin Name
health
Plugin Version
11.1.0
Device
Android
Operating System
14
Describe the bug
There appears to be a mismatch of argument names between Flutter bridge and Kotlin code:
Compare
health_plugin.dart
:compare with Kotlin implementation:
And note the difference in parameter names for
dataTypeKey
vsdataTypeKeys
and also forinterval
vsactivitySegmentDuration
.Steps to Reproduce
Calling
getHealthAggregateDataFromTypes
with AndroidHealthConnect raisesjava.lang.NullPointerException
.Expected Behavior
Return data aggregated in buckets of specified interval.
Actual Behavior
Throwing
java.lang.NullPointerException
Flutter Logs
No response
Screenshots
No response
Flutter Doctor Output
Additional Information
No response
The text was updated successfully, but these errors were encountered: