I’m developing a Flutter app using the flutter_health_connect package. I’ve followed the official guidelines, but I’m running into an issue. When I build the APK and try to access data, I can’t seem to retrieve it. The app correctly detects that Health Connect is installed and available, but I don’t have the necessary permissions.
When I try to request permissions, Health Connect says my APK needs to be updated.
For context, I’m already using version 1.2.3 of the package.
Could anyone help me figure this out?
I followed the official flutter_health_connect instructions to set up access to Health Connect, including adding the required permissions in the AndroidManifest.xml.
I expected that, after building the APK and requesting permissions from Health Connect, the permissions would be granted without issues. However, when I try to request permission, I receive a message stating that the APK needs to be updated. Even though I am using version 1.2.3 of the package, the issue persists.
I’m developing a Flutter app using the flutter_health_connect package. I’ve followed the official guidelines, but I’m running into an issue. When I build the APK and try to access data, I can’t seem to retrieve it. The app correctly detects that Health Connect is installed and available, but I don’t have the necessary permissions.
When I try to request permissions, Health Connect says my APK needs to be updated.
For context, I’m already using version 1.2.3 of the package.
Could anyone help me figure this out?
I followed the official flutter_health_connect instructions to set up access to Health Connect, including adding the required permissions in the AndroidManifest.xml.
I expected that, after building the APK and requesting permissions from Health Connect, the permissions would be granted without issues. However, when I try to request permission, I receive a message stating that the APK needs to be updated. Even though I am using version 1.2.3 of the package, the issue persists.
Share Improve this question asked Mar 21 at 15:43 Ricardo SanguedoRicardo Sanguedo 112 bronze badges2 Answers
Reset to default 0Guessing from the version you provided, I'm assuming that you're talking about this library: https://github/imdzx/flutter_health_connect
According to this issue on GitHub it seems that this library is abandoned and no longer receives any updates. (The last commit was over 2 years ago). This seems very likely to be the underlying issue.
Also linked in that issue is a fork someone is maintaining, which seems to have received an update about 5 months ago. Perhaps that one might work instead.
Provide the required code to reproduce the issue you are facing. This helps in understanding the problem better and providing a solution.
Additionally, if you are using the flutter_health_connect package, be aware that it is no longer maintained. I recommend switching to the health: ^12.1.0 package instead. It is actively maintained, has better issues resolved, and the documentation is easy to follow. This will ensure compatibility with the latest Flutter updates and provide a smoother development experience as well.