You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to insert a ExerciseSession with ExerciseRoute on Health Connect but when I execute insertion I receive the error below. I've set permission for android.permission.health.WRITE_EXERCISE_ROUTE on my app.json file and the error persists.
Error inserting exercise: [Error: android.health.connect.HealthConnectException: java.lang.SecurityException: Caller doesn't have android.permission.health.WRITE_EXERCISE_ROUTE to write to record type class android.health.connect.datatypes.ExerciseSessionRecord]
gabrielgouv
changed the title
Caller doesn't have android.permission.health.WRITE_EXERCISE_ROUTE on
Caller doesn't have android.permission.health.WRITE_EXERCISE_ROUTE
Aug 1, 2024
Describe the bug
I'm trying to insert a ExerciseSession with ExerciseRoute on Health Connect but when I execute insertion I receive the error below. I've set permission for
android.permission.health.WRITE_EXERCISE_ROUTE
on my app.json file and the error persists.My permissions:
My code:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should insert exercise with route
Minimal Reproducible
Insert without route works normally with this code.
Environment:
The text was updated successfully, but these errors were encountered: