react-native-beacons-manager
react-native-beacons-manager copied to clipboard
Monitoring more than 20 regions in iOS
Version
1.0.7
Platform
iOS
OS version
MacOS Sierra
iOS 10
Steps to reproduce
- install library
- 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
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 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
It uses CLLocationmanager
so its limitations will limit the library.
I guess Apple want to save battery drain.
@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?
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?
Understood Thanks! @MacKentoch
Are you able to get this working for iOS ? Not working for me! Please help.