iOS 8.2 MonitoringForRegion delegate Method was working perfectly and now not getting called

95 Views Asked by At

Since yesterday, I have a problem with monitoring region working with CLLocationManager

PS: my project was working perfectly I'm testing it everyday, but today this delegate method was called after 1 minute of entering a region

-(void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region{} 

and now it's no more getting called I have made another project only with CLLocationManager for testing the delegate method and the same thing is happening.

Can you just tell me what the hell this could be?

[UPDATE]

i found this helpful link about iOS Region Monitoring after iPhone Restart

2

There are 2 best solutions below

1
On

Just check that below service is on or off.

[CLLocationManager regionMonitoringAvailable] returns YES CLLocationManager.monitoredRegions contains valid regions

Apple document specified that events make take between 3-5 minutes to fire.

Hope this help you.

0
On

Does locationManager:didDetermineState:forRegion: get called?

Do you call requestStateForRegion: after startMonitoringForRegion:?

Is this in background or foreground?