I am trying to get a sample application working for iBeacon scanning and display.
This is using iOS 8 and the target device is iPhone 5s. Following pre-requisites are taken care before running the application in iPhone 5s.
1) Added NSLocationAlwaysUsageDescription in info.plist 2) iOS is selected as 8 3) Setting in Xcode, on the "Capabilities" tab, under "Background Modes", where "Location Updates" and "Uses Bluetooth LE Accessories" are selected. 4) Background App Refresh is ON in iPhone.
Unfortunately, didEnterRegion and didRangeBeacons are not getting called at all. However, didStartMonitoringForRegion gets called.
Please also note the following.
1) All the beacons are working fine and verified in the same iPhone using third party application downloaded. 2) In the debug window, I can always see that Location Service authorization status is "Not determined" always. 3) If I switch location services off in iPhone, then I get authorization status as "Denied". 4) [self.locationManager requestAlwaysAuthorization]; call has no effect.
What is that I am not doing it correctly ? It would be really great if you can help me resolve this issue.