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

Connecting Polar Using Bluetooth or using direct connection.

All

GenerousPeacock13 months ago

Hi Terra Team,

I have 2 questions:

  • When a user wants to connect to a polar device, they have to go through the terra webflow to login and connect their polar strap to our React Native app. I was wondering if there is a streamlined way to do this without having the customer go through the webflow.

  • We realised that we cannot connect Samsung Health to our IOS react native app. I was wondering if you know how we can sync a user's Samsung Health data with Apple Health. So that way we can connect Terra to AppleHealth on IOS while pulling the galaxy watch data.

Please also let me know if its possible to setup a call to speak to your team on the help we need. Regards.

Thanks.

terra

Vanessaadmin11 months ago

Hey there!

  1. Polar: You can connect to Polar directly using the authentication endpoint without going through the widget! You can instead include a direct polar connection endpoint. See here for the specifics: https://docs.tryterra.co/reference#authentication

You'll need to specify resource as a query parameter set to the Polar provider identifier . The response will provide an auth_url that takes users directly to Polar's authentication flow. Please also note that the Polar integration does not allow data to be fetched before the user is authenticated - being one of the few integrations with this limitation.

POST /v2/auth/authenticateUser HTTP/1.1 Host: api.tryterra.co dev-id: text x-api-key: text Content-Type: application/json Accept: / Content-Length: 111 { "language": "text", "reference_id": "text", "auth_success_redirect_url": "text", "auth_failure_redirect_url": "text" }

  1. Samsung Health: The Terra Mobile SDK for Samsung Health is only available for Android, there is no SDK for Samsung Health on iOS so far. You can include Google Fit for those users that sync their data with it, however we recommend to rely on Terra's Android SDK to access data from Samsung Health.