iOS 8 CLLocationManager enterRegion: wird bei Verwendung von requestWhenInUseAuthorization @ nicht aufgeruf

Ich versuche, die Delegatmethode locationManager: didEnterRegion in iOS 8 für eine benutzerdefinierte Region zu erhalten. Hier ist der Code:

self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
    [self.locationManager requestWhenInUseAuthorization];
}

CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:CLLocationCoordinate2DMake(20, 20) radius:1000 identifier:@"asda"];
region.notifyOnEntry = YES;
region.notifyOnExit = YES;
[self.locationManager startMonitoringForRegion:region];

Es ruft die Methode @ alocationManager:didStartMonitoringForRegion, aber es werden keine Regionsmethoden "enter" oder "exit" aufgerufen.

Das seltsamere ist, dass es funktioniert, wenn ich requestAlwaysAuthorization für locationManager verwende. Aber ich muss es mit "When In Use" zum Laufen bringen.

Hinweis: In iOS7 funktioniert dies sowohl für WhenInUse- als auch für Always Authorization-Methoden.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage