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 add setUpBackgroundDelivery in App Delegate for expo app

All

ItchyGuanaco10 months ago

As mentioned in the documentation https://docs.tryterra.co/health-and-fitness-api/mobile-only-sources/react-native#id-5.-background-delivery-setup-ios-only, we need to add the setUpBackgroundDelivery function. However, I’m unsure how to implement this in an Expo React Native app. In the Expo EAS build process, I can't manually add a function, and everything else has been set up correctly, except for this function.

So, because of this, I am not receiving webhook calls related to the Apple Watch.

I am also trying to solve this through a local native module, but I have not succeeded yet.

terra

Vanessaadmin10 months ago

Hey there !

The Terra React Native SDK now includes an Expo config plugin! To set it up, install the SDK:

npm i terra-react

Then, add terra-react into your app.config.js

That’s it :) This will automatically add the built-in plugin into your expo app the next time you build.