UIApplicationSignificantTimeChangeNotification is not activated on the date of the change

I set a significant time change notification in my AppDelegate as [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(timeChange) name:UIApplicationSignificantTimeChangeNotification object:nil];

The function is timeChangenot called when I manually change the date on the phone, even after I bring the application to the forefront.

I also tried the method - (void)applicationSignificantTimeChange:(UIApplication *)application, but this is not called either.

Am I doing something wrong here?

+4
source share

Source: https://habr.com/ru/post/1544173/


All Articles