Closed bardram closed 10 months ago
I've now found why this happens. It's because I add
HealthDataType.DISTANCE_WALKING_RUNNING,
HealthDataType.EXERCISE_TIME,
to the list - but these two data types are not supported on Health Connect. So - when removing them, it works.
However - it might be useful with more telling error messages than a null pointer exception.
Device and OS
When calling the
hasPermissions
method, there is aPlatformException
in Flutter wich comes from aNullPointerException
in Kotlin:Trying to collect these health data types: