How to setup Terra iOS Background delivery
AllAfraidWeasel25 months ago
Hi there, we are trying to use Terras background delivery with the iOS SDK to get user activities whilst the app is in the background. However in testing it seems that no events are being sent to our webhook. What is the setup needed to enable this
Chandruadmin25 months ago
Hey there
To ensure that your app supports background delivery, the following must be completed:
- Add the Background Modes capability and enable Background Processing and Background fetch. This can be done by opening your
.xcodeprojfile in XCode, navigating toSigning & Capabilitiesand pressing + Capability - Add the HealthKit capability and enable Background delivery
- Add the terra Background task identifier: navigate to your
.xcodeproj>Infoand create/edit the listPermitted background task scheduler identifiersand add the elementco.tryterra.data.post.request - In the same tab, the key
Privacy - Health Share Usage Descriptionshould be created with the value being a description of your use case (which must be > 2 words) - Add the following to your
AppDelegatefile:
AfraidWeasel25 months ago
It seems to be working now, thank you for the help