Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

Samsung Health Permission Not working

All

GenerousPeacock10 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:

https://www.dropbox.com/scl/fo/kq8a917jgak7blgsdjopv/AGNJSa6_zoZdNmSV9YGRg6w?rlkey=9mwsvs65ydxj86s24z9p6qfpk&st=f6abfshb&dl=0

terra

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