Terra integrations with IOS works on local, but breaks in staging with expo

NiceMoth1 month ago

When i try to run the app on staging real device, it returns the below error

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSHealthShareUsageDescription must be set in the app's Info.plist in order to request read authorization for the following types: HKQuantityTypeIdentifierDietaryCopper, HKQuantityTypeIdentifierDietaryMagnesium, HKWorkoutRouteTypeIdentifier, HKQuantityTypeIdentifierDietarySelenium, HKQuantityTypeIdentifierDietaryFatSaturated, HKQuantityTypeIdentifierBodyTemperature, HKQuantityTypeIdentifierDietaryPotassium, HKQuantityTypeIdentifierDietaryVitaminK, HKQuantityTypeIdentifierBodyFatPercentage, HKQuantityTypeIdentifierDietaryCalcium, HKCharacteristicTypeIdentifierBiologicalSex, HKQuantityTypeIdentifierDietaryFatMonounsaturated, HKQuantityTypeIdentifierRunningPower, HKQuantityTypeIdentifierDietaryThiamin, HKQuantityTypeIdentifierStepCount, HKQuantityTypeIdentifierDietaryFolate, HKQuantityTypeIdentifierDietaryCholesterol, HKCategoryTypeIdentifierSleepAnalysis, HKQuantityTypeIdentifierBasalEnergyBurned, HKQuantityTypeIdentifi<>

The same implementation works on my local with expo development build

terra

Elliottadmin2 weeks ago

Hey,

This is an issue regarding missing keys in the info.plist file!

Please do include NSHealthShareUsageDescription in the info.plist file with a value that properly describes your usage of Health data for your app.


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.