How to add setUpBackgroundDelivery in App Delegate for expo app

ItchyGuanaco2 weeks 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

Vanessaadmin3 days 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.


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.