loup-v / beacons

Flutter beacons plugin for Android and iOS.
Apache License 2.0
78 stars 54 forks source link

BeaconRegionIBeacon at ranging: Unable to parse Identifier. #15

Open lchinke opened 5 years ago

lchinke commented 5 years ago

Hi

I am trying to pass a BeaconRegionIBeacon through the ranging() method but when i pass the major and minor as Int, ranging breaks with the message (Unable to parse Identifier.) and shows me that the minor and major, previously set as int, have been converted to double.

I am actually trying to fix this issue, but if anyone can help me I would appreciate it.

vinceramcesoliveros commented 5 years ago

Change it to string. It works fine in his example in the lib/data/beacon_region.dart

in the BeaconRegionIBeacon

class BeaconRegionIBeacon extends BeaconRegion {
  BeaconRegionIBeacon({
    @required String identifier,
    @required String proximityUUID,
    String major,
    String minor,
  })