The spread color is set for the WKNotificationCategory category in the storyboard that has a name. (In your screenshot is "myCategory"). Then, in order for the correct color of the belt to be displayed on the real device, the notification of pressing should have the name of the corresponding category when sending it.
UILocalNotification *notification = [[UILocalNotification alloc] init]; if (notification) { notification.alertBody = @"Hello"; notification.category = @"myCategory"; [[UIApplication sharedApplication] scheduleLocalNotification:notification]; }
source share