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

How to setup Capacitor SDK

All

DrunkLungfish24 months ago

Hello, In one of the posts it says , Terra SDK supports Capacitor but don't see any documentation pertaining to it .

Is terra-capacitor ( https://www.npmjs.com/package/terra-capacitor?activeTab=readme ) good to integrate ?

terra

Chandruadmin24 months ago

Hey,

Our Terra Capacitor SDK works in the same way as our terra-react package. For the general idea of integration, (we will reference functions found here:

For installation:

After installation, you will have to run initTerra every time the app starts. Once completed, you can run initConnection for users that wish to connect to APPLE_HEALTH or SAMSUNG. You do not need to run this function if the user has already been connected previously. You can use the getUserId function to check if they have been connected previously or not.

After this, you may directly call the getter functions to request for data (i.e getActivity, getDaily, and etc.) For background delivery, please follow the native setup as shown here