react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

Monitoring more than 20 regions in iOS

Open divye11 opened this issue 6 years ago • 7 comments

Version

1.0.7

Platform

iOS

OS version

MacOS Sierra

iOS 10

Steps to reproduce

  1. install library
  2. monitor for more than 20 regions in iOS

Expected behavior

Monitoring should start successfully for all regions.

Actual behavior

Error is thrown, monitoring not started for region

divye11 avatar Apr 02 '18 10:04 divye11

Not sure wether it were not a limit in number of region monitored.

Could you decrease number step by step to see what is your maximum number of beacon?

MacKentoch avatar Apr 10 '18 07:04 MacKentoch

@MacKentoch I tried it's limited upto 20 regions can this be the reason? the app can register 20 regions at once as per CLLocationmanager docs https://developer.apple.com/documentation/corelocation/cllocationmanager/1423656-startmonitoring

divye11 avatar Apr 10 '18 07:04 divye11

It uses CLLocationmanager so its limitations will limit the library.

I guess Apple want to save battery drain.

MacKentoch avatar Apr 10 '18 07:04 MacKentoch

@MacKentoch
My use case needs me to load regions from an API call which exceeds 20 regions, and monitor for region exit and entry events. Do you have a workaround that does not consume a lot of battery?

divye11 avatar Apr 10 '18 08:04 divye11

Maybe you should mix monitoring and ranging.

So that as far as documentation tells us monitoring is limited to 20 regions but inside a region you can range other beacons to make things like they are more than 20 region managed.

Regions should be huge spacial area and inside each area it contains beacons you range only when you enter the region.

Do you see my idea?

MacKentoch avatar Apr 10 '18 08:04 MacKentoch

Understood Thanks! @MacKentoch

divye11 avatar Apr 18 '18 15:04 divye11

Are you able to get this working for iOS ? Not working for me! Please help.

sjaidka224 avatar May 05 '19 10:05 sjaidka224