Caller doesn't have android.permission.health.READ_SLEEPto read to record typeclass android.health.connect.datatypes.SleepSessionRecord
Closed this issue · 2 comments
RushitaRn25 commented
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Minimal Reproducible
Link to minimal reproducible code. It would be much easier for us to investigate the issue!
Environment:
- Health Connect Version:3.1.0
- React Native Version: 0.71.7
- New architecture enabled: no
- Using Expo: No
- Android API Level: e.g API 34 (Android 14)
matinzd commented
As there is no reproduction and templated filled I am gonna close this.
Probably you haven't added required permissions in the manifest based on the title.
KesoGizmoYoshi commented
https://github.com/matinzd/react-native-health-connect?tab=readme-ov-file#installation
You need to add the changes to your MainActivity.kt.