我已經開始測試使用estimaotes作爲信標的iBeacons。iBeacon在後臺測距?
這一切都運行相當不錯,但我努力讓應用程序在後臺正常運行。
self.region = [[CLBeaconRegion alloc] initWithProximityUUID:self.uuid identifier: self.deviceID];
self.region.notifyEntryStateOnDisplay = YES;
[self.locationManager startMonitoringForRegion:self.region];
所以這是基本的設置和我的測試應用程序我想顯示本地通知時,我的手機是在緊鄰的燈塔。我的問題是,它不會工作,除非我包括下面的行。
[self.locationManager startUpdatingLocation];
任何人都可以解釋爲什麼這是或如果我失去了一些關於iBeacons?
嗨,你有關於startUpdatingLocation你的問題的答案嗎? – mm24