pob21
pob21

Reputation: 1928

App icon not appearing in Activity app using HealthKit

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

Answers (1)

Pooja Kamath
Pooja Kamath

Reputation: 1298

Have you tried these ?

  1. Make sure the app icon is included in the WatchKit app bundle (and check the same even in the extension).

Target setting for app icon

  1. App icons meets all of the criteria Apple has set. Like the dimensions of the icons.

app icon set for watch os

  1. Check in the Watch App Target if this AppIcon set is set as the Apps Icons Source.

general

Upvotes: 0

Related Questions