Reputation: 1928
I'm using HealthKit to record and store workouts in the Health app. Everything appears just fine in the Health app. When I check the Apple Activity app I'm able to see my workout but I'm unable to see my app's icon.
I've manually added workouts via the Health app and I've also added workouts with Strava. The Activity app shows both these apps' icons properly. For some reason mine is still missing.
This is the best description I've seen of this issue: https://forums.raywenderlich.com/t/healthkit-save-workout-set-icon-for-activity-app/42846/3
Has anyone else experienced this?
I'm using Xcode 10.1 and this happens on all devices.
Thanks in advance!
Here's how I'm creating the workout:
let workout = HKWorkout(activityType: .mixedCardio,
start: startDate,
end: endDate,
duration: duration,
totalEnergyBurned: energyBurned,
totalDistance: totalDistance,
device: wearableDevice, metadata: nil)
Upvotes: 4
Views: 827
Reputation: 1298
Have you tried these ?
Upvotes: 0