天天看點

ibeacon背景運作使用注意點

ibeacon背景運作使用注意點:

iOS 系統7.1以後,如果應用沒有打開也能搜尋到ibeacon

我在研究過程中遇到的一些問題:

1、設定-背景應用程式重新整理-自己應用打開

2、         region.notifyEntryStateOnDisplay = YES;

region.notifyOnEntry = YES

         region.notifyOnExit = YES;

三個參數需要設定

3、進入背景之前不能stopRangingBeaconsInRegion;必須要在search

4、plist檔案需要設定Required background modes

http://www.chinaibeacons.com/index.php?a=shows&catid=1&id=18

繼續閱讀