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

[QUESTION] iOS - How to get Major and Minor key on RegionDidEnter/RegionDidExit?

Open drailanjohngss opened this issue 6 years ago • 7 comments

Version

1.0.1

Platform

iOS

OS version

iOS 10| android 7.0...

Steps to reproduce

I can just get UUID when firing regionDidEnter/RegionDidExit.

Expected behavior

Actual behavior

drailanjohngss avatar Mar 26 '18 09:03 drailanjohngss

You need to enter those in region along with uuid to get that in regionDidenter and regoinDIdExit events

divye11 avatar Apr 02 '18 10:04 divye11

  this.regionDidEnterEvent = Beacons.BeaconsEventEmitter.addListener(
      "regionDidEnter",
      data => {
        console.log("monitoring - regionDidEnter data: ", data);
      }
    );

this is my code, but I can only see uuid when logging the data @divye11

drailanjohngss avatar Apr 06 '18 02:04 drailanjohngss

Could you share your region definition too?

divye11 avatar Apr 06 '18 05:04 divye11

  Region: {
      identifier: 'HiBeacon',
      uuid: '00000000-017C-1001-B000-001C4DB7979B',
  }

I can get the major and minor keys when ranging but not monitoring, what I want is to get the major and minor keys when regionDidEnter fired.

drailanjohngss avatar Apr 06 '18 08:04 drailanjohngss

Having the same problem here. Only the uuid is returned on monitoring The monitoring was started with a region with uuid, major and minor

zerobytes avatar Feb 18 '19 05:02 zerobytes

Having the same problem, anyone fix that ?

niv-breez avatar Oct 31 '19 08:10 niv-breez

+1

ycldz avatar Oct 03 '22 08:10 ycldz