2017-03-17 54 views
1

我使用下面的Apple cllocation經理地區監測方法:位置管理區域監控

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

的問題是,當應用程序處於暫停狀態,而不是running.Any幫助將不勝感激這些方法不會被調用。感謝

+0

你檢查'backgroundRefreshStatus'爲您的應用程序? – rmp

回答

0

嘗試使用顯著位置的變化,而不是開始更新location.Also有半徑監測的限制,最小半徑應爲100μm

+0

哦,你已經解決了我的問題,我一個月以來一直在b my我的頭。感謝它的工作,現在我忘了檢查半徑。 –