WKInterfaceActivityRing I can't get it to work

Hello,


Im trying to add WKInterfaceActivityRing to my watch project and something is not working, the ring just stays dulled out, not getting any data.

So to test it I created a blank project and added a WKInterfaceActivityRing to the interface. I connected it up to the outlet and in the interface Controller i added this code with simple values.


import WatchKit
import HealthKit


@IBOutletvar activityRing: WKInterfaceActivityRing!

let activitySummary = HKActivitySummary()
activitySummary.activeEnergyBurned = HKQuantity(unit: HKUnit.kilocalorie(), doubleValue: 1000)
activitySummary.activeEnergyBurnedGoal = HKQuantity(unit: HKUnit.kilocalorie(), doubleValue: 1500)
activitySummary.appleExerciseTime = HKQuantity(unit: HKUnit.minute(), doubleValue: 20)
activitySummary.appleExerciseTimeGoal = HKQuantity(unit: HKUnit.minute(), doubleValue: 30)
activitySummary.appleStandHours = HKQuantity(unit: HKUnit.count(), doubleValue: 3)
activitySummary.appleStandHoursGoal = HKQuantity(unit: HKUnit.count(), doubleValue: 12)

activityRing.setActivitySummary(activitySummary, animated: true)


Everthing I have tried the ring just stays dulled out, not getting any data.

Does anyone know where i can find help with this?


Xocde Version 11.3.1 (11C504)


Thank you.