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

Monitoring beacons with region equal to null does not work.

Open divye11 opened this issue 6 years ago • 8 comments

Version

1.0.7

Platform

iOS & Android

OS version

iOS 10 & android 7.0

Steps to reproduce

  1. install library
  2. use startMonitoringForRegion(null)

Expected behavior

Should scan for any beacon in region.

Actual behavior

Does not monitor any beacons at all.

divye11 avatar Mar 10 '18 13:03 divye11

i believe it´s a required parameter. it works for me with ANY string though.

The parameter regionId must be an unique ID. The parameter beaconsUUID is optional,...

ateufel avatar Mar 19 '18 21:03 ateufel

So if i put any valid format of string it will detect any and every beacon broadcasting that format?(for eg ibeacon format)

divye11 avatar Mar 20 '18 00:03 divye11

just try it ;) - it worked for me with some estimote beacons.

ateufel avatar Mar 20 '18 08:03 ateufel

We are talking about the identifier parameter of region or UUID here? Could you show me an example where you put any random uuid string for reference and could catch all beacon signals of that format(for eg ibeacon) because I had to explicitly mention all uuid and region details

divye11 avatar Mar 21 '18 04:03 divye11

we are only talking about the parameter regionId, the uuids are optional. if you do not add it, you will get all beacons in range. i just used the "Simple example" code from the Readme.md for android, nothing else.

ateufel avatar Mar 21 '18 11:03 ateufel

Yes identifier is compulsory but can be anything but in the example you just pointed out it does use a uuid: parameter in defining region. I was interested in scanning any and every beacon in my proximity without specifying uuid for every beacon, Iam using an iOS device for testing

divye11 avatar Mar 23 '18 09:03 divye11

just ignore the uuid parameter then. you were talking about the region parameter, not the uuid...?

ateufel avatar Mar 24 '18 08:03 ateufel

@ateufel No i was talking about the uuid parameter of region

divye11 avatar Apr 18 '18 12:04 divye11