tryterra / terra-flutter

BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

Android requires permissions that are not used #11

Open bwhiteFC opened 7 months ago

bwhiteFC commented 7 months ago

If we include the terra package in our Flutter project it will not allow us to upload to Google Play store because it is saying that a long list of specific health permissions are required.

We get an error that says: You need approval to use the following Health Connect permissions in your app: android.permission.health.READ_HEART_RATE,android.permission.health.READ_STEPS,android.permission.health.READ_ACTIVE_CALORIES_BURNED,android.permission.health.READ_BASAL_METABOLIC_RATE,android.permission.health.READ_BLOOD_GLUCOSE,android.permission.health.READ_BLOOD_PRESSURE,android.permission.health.READ_BODY_FAT,android.permission.health.READ_BODY_TEMPERATURE,android.permission.health.READ_BODY_WATER_MASS,android.permission.health.READ_BONE_MASS,android.permission.health.READ_DISTANCE,android.permission.health.READ_ELEVATION_GAINED,android.permission.health.READ_EXERCISE,android.permission.health.READ_FLOORS_CLIMBED,android.permission.health.READ_HEART_RATE_VARIABILITY,android.permission.health.READ_HEIGHT,android.permission.health.READ_HYDRATION,android.permission.health.READ_LEAN_BODY_MASS,android.permission.health.READ_MENSTRUATION,android.permission.health.READ_NUTRITION,android.permission.health.READ_OXYGEN_SATURATION,android.permission.health.READ_POWER,android.permission.health.READ_RESPIRATORY_RATE,android.permission.health.READ_RESTING_HEART_RATE,android.permission.health.READ_SLEEP,android.permission.health.READ_SPEED,android.permission.health.READ_TOTAL_CALORIES_BURNED,android.permission.health.READ_VO2_MAX,android.permission.health.READ_WEIGHT...

We are not using Google Fit and this was not the case on previous versions of the terra package.

mhyassin commented 5 months ago

@bwhiteFC they usually provide a no-perm version, which doesn't include those permissions

bwhiteFC commented 5 months ago

@mhyassin they have only done this once as far as I can tell. We need them to keep it in sync with each release.