[問題] Beacon背景偵測
請問各位大大
我需要在背景時繼續偵測beacon事件
app kill掉不在background時也要觸發
但是有些問題
當app未在background時且不在beacon偵測範圍內
進入偵測的範圍 didEnterRegion會觸發事件發送LocalNotification是ok的
但是當自身已經在範圍內就無法觸發
而在app開啟後關閉在background時
無法用didRangeBeacons繼續偵測事件
但是自身已經在beacon的範圍內了
因為沒有進入並不會再次觸發didEnterRegion
請問這樣要如何繼續在背景偵測?
也有在didEnterRegion加上
[self.locationManager startMonitoringForRegion:self.beaconRegion];
[self.locationManager startRangingBeaconsInRegion:self.beaconRegion];
但是好像沒有成功.....
背景觸發15分鐘事件是指didEnterRegion嗎?
但是我未開啟app一樣會觸發阿...
這樣那15分鐘是指哪一個情況呢?
backgeound mode 勾選了
location updates uses Bluetooth LE accessoies Acts as Bluetooth LE accessory
但是不知道有什麼太大差異....
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.34.125.154
※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1436980785.A.B35.html
※ 編輯: starkite (1.34.125.154), 07/16/2015 01:21:54
推
07/16 08:11, , 1F
07/16 08:11, 1F
→
07/16 08:11, , 2F
07/16 08:11, 2F