Closed oleksii-melnychenko-pwrcd closed 2 months ago
So i was able to tackle this issue. The problem is that only occurs when health connect is not installed on the app which is actually documented in the README. In my defence i cas say that i wasn't expecting the crash as it is. :) Closing this issue
I recently upgraded from 9 to 11 and now it crashes on my emulator, API 33 as well with the same error:
E/AndroidRuntime(21677): kotlin.UninitializedPropertyAccessException: lateinit property healthConnectClient has not been initialized
Surely this needs fixing? If Health Connect not installed it shouldn't crash the entire app? I'm not sure at this stage if this will happen in production as well, but my most recent update to Huawei was rejected due to a crash and it may be related to this. The update to Google Play is not live yet; I'm hoping that the app doesn't crash on production, if a user doesn't have Health Connect installed.
Seems like a P1 issue to me?
Device / Emulator and OS
Describe the bug
When testing example app for the health plugin, the application crashes when when pressing Authenticate button.
To Reproduce
Expected behavior
The app to function as on the Android devices with api higher than 33 (>=34)
Actual behavior
App crashes with the following errors:
Flutter doctor