Terra
Integrations
Research

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workouts
Planned Workouts
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
Pricing
Become an integrationGet started
IntegrationsResearch
Unified APIUnified APISDKSDKAuthenticationAuthenticationStreamingStreamingGraph APIGraph APIScoresScoresRewardsRewardsBlood Report APIBloodAI InterfaceAI Interface
EnterpriseEnterpriseInsuranceInsuranceWearable DataWearable DataCommunityCommunityDocumentationDocumentationBlogBlogPodcastPodcastEventsEventsReportsReportsCustomersCustomersCareersCareersPartnersPartnersSupportSupport
Pricing
Get startedBecome 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.

Cookies Policy
zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

How to setup Terra iOS Background delivery

All

AfraidWeasel26 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

terra

Chandruadmin26 months ago

Hey there

To ensure that your app supports background delivery, the following must be completed:

  1. Add the Background Modes capability and enable Background Processing and Background fetch. This can be done by opening your .xcodeproj file in XCode, navigating to Signing & Capabilities and pressing + Capability
  2. Add the HealthKit capability and enable Background delivery
  3. Add the terra Background task identifier: navigate to your .xcodeproj > Info and create/edit the list Permitted background task scheduler identifiers and add the element co.tryterra.data.post.request
  4. In the same tab, the key Privacy - Health Share Usage Description should be created with the value being a description of your use case (which must be > 2 words)
  5. Add the following to your AppDelegate file:

AfraidWeasel26 months ago

It seems to be working now, thank you for the help