didRangeBeacons:InRegion iOS beacons in background

Hi
Whether didRangeBeacons will work on Background of the app.Plz Help to do......

Note that while technically possible, we strongly advise against persistent ranging in the background, as it bears a negative impact on the battery life. Consider designing your application around region monitoring instead.

Of course, sometimes you're sure that your app needs persistent background ranging for beacons and you know that it'll provide enough value for the user to justify the battery drain. In this case, here's how you can proceed:

You'll need to activate "Location updates" Background Mode capability for your application. For startRangingBeaconsInRegion to work in the background you'll also need to start Standard Location Updates via CLLocationManager's startUpdatingLocation.

It might also be a good idea to allow users to start & stop the background ranging at will in your application.

Last but not least, keep in mind that you might need to explain why your application utilizes Location Background Mode during the App Review process. Apple tends to be a bit more restrictive about such applications, as their continuous usage of the device's radio has its toll on the battery life—so if they don't see enough value for the user (e.g. you only use it for internal tracking/analytics purposes), you might expect your app to get rejected.