49 caused Health Kit Permissions screen and app permissions screens to fail to appear in on-boarding and in Profile view.
Actions
Extend APCOnboardingManagerProvider protocol to require an APCPermissionsManager.
Initialize APCPermissionsManager with HealthKitCharacteristicTypesToRead, healthKitQuantityTypesToRead, healthKitQuantityTypesToWrite, and userInfoItemTypes.
APHAppDelegate will provide an APCPermissionsManager with the new initializer:
-(APCPermissionsManager * __nonnull)permissionsManager { return [[APCPermissionsManager alloc] initWithHealthKitCharacteristicTypesToRead:[self healthKitCharacteristicTypesToRead]healthKitQuantityTypesToRead:[self healthKitTypesToRead] healthKitQuantityTypesToWrite:[self healthKitTypesToWrite] userInfoItemTypes:[self userInfoItemTypes]]; }
AppDelegate should configureObserverQueries with a call as follows:
NSArray* dataTypesWithReadPermission = [self healthKitTypesToRead];
Tests
Tested in Apple Diabetes. Pull request to YML supported apps will be submitted after merge.
Objectives
49 caused Health Kit Permissions screen and app permissions screens to fail to appear in on-boarding and in Profile view.
Actions
-(APCPermissionsManager * __nonnull)permissionsManager { return [[APCPermissionsManager alloc] initWithHealthKitCharacteristicTypesToRead:[self healthKitCharacteristicTypesToRead]healthKitQuantityTypesToRead:[self healthKitTypesToRead] healthKitQuantityTypesToWrite:[self healthKitTypesToWrite] userInfoItemTypes:[self userInfoItemTypes]]; }
NSArray* dataTypesWithReadPermission = [self healthKitTypesToRead];
Tests
Tested in Apple Diabetes. Pull request to YML supported apps will be submitted after merge.