最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Issues with Permissions in flutter_health_connect: APK Needs to Be Updated - Stack Overflow

programmeradmin4浏览0评论

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 badges
Add a comment  | 

2 Answers 2

Reset to default 0

Guessing 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.

发布评论

评论列表(0)

  1. 暂无评论