locationManager:didEnterRegion not called when a beacon is detected

前端 未结 4 419
广开言路
广开言路 2020-12-03 03:45

While testing with beacons (iOS devices) I found the listener beacon giving some unexpected behavior. locationManager:didEnterRegion method is not getting c

4条回答
  •  心在旅途
    2020-12-03 03:58

    before starting coding in project , you must follow given setup guidlines -->
    1. in project info or info.plist -->
             Custom IOS Target Properties -->
                        . add "Required background modes"
                        . in this add two items -->
                                    ."App shares data using CoreBluetooth"
                                    ."App registers for location updates"
    2. in project Capability -->
             There is Background Modes  
                       . check "Loaction update"  
                       . check "Acts as a Bluetooth LE accessory"
                       . check "uses bluetooth LE accessories"
    

    (and do follow the instructions given by Mr. Davidgyoung. believe me, it will definitely work.)

提交回复
热议问题