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