Samsung Health Permission Not working
AllGenerousPeacock10 months ago
Hi, our entire Terra configuration works on iOS, but when trying to test the Samsung Health permissions SDK on Android, it doesn't work, and it keeps on asking for permissions. We have put on all the permissions available, and it's still not working. Please, what can we do? We have provided pictures below to show exactly what we are seeing and all the permissions that we have available. Thank you.
These are images describing the problem:
Vanessaadmin10 months ago
Hey there!
There are several key requirements for Samsung Health to work properly on Android. Please check that the following criteria are met, otherwise please write us a support ticket through the dashboard (upper right corner under "Support") and we'll guide you through it step by step :)
Samsung Health Access Requirements: Terra API provides direct access to the Samsung Health SDK via our privileged partnership with Samsung. Once you apply for Samsung Health access, please reach out to us by submitting a ticket on the Terra Support page, this will ensure that your application is accepted!
Key Implementation Points: Single Connection Call: The initConnection function only needs to be called a single time. Health Connect prohibits the permission popup to appear more than once for any given permission, so calling initConnection more than once will result in no action at all.
When Permissions Re-appear:
The permission popup will only re-appear if:
- You call initConnection with an expanded set of customPermissions
- The app is deleted & reinstalled
- A permission that was not granted to use on release by Google has been requested by the app
- Device Compatibility: Samsung Health can only be accessed on Android devices. The device must have the required app installed, e.g. Health Connect or Samsung Health.
- Minimum Requirements: Your app build config must be for Android 28 (minSDK 28) and above.
Since you mentioned the permissions keep asking repeatedly, this suggests the initConnection call might be happening multiple times. Make sure you're only calling it once and check if you have proper Samsung Health access approval from Terra.
Hope this helps! :)
AbundantPossum7 months ago
No reply
AbundantPossum7 months ago
Noneed for reply