alann-maulana / flutter_beacon

An hybrid iBeacon scanner and transmitter SDK for Flutter Android and iOS.
Apache License 2.0
117 stars 144 forks source link

Example project Accuracy/RSSI values can't be acquired on iOS #23

Closed atavci closed 4 years ago

atavci commented 4 years ago

When I run the example project on iOS devices I can't see the Accuracy or RSSI values of the beacons that have been found. Accuracy is always -1.0. The example runs without any problem on a Galaxy S6 Android device (RSSI can be read correctly) but not on an iPhone 6 Plus or a 6th generation iPad. Any idea what might be causing this or can these values be reached from iOS? I've added a screenshot from the iPad, Thanking you in advance.

Edit: I am using iBeacons which are very similar to the link here.

IMG_A8456207F40A-1

alann-maulana commented 4 years ago

Hi @atavci

What iOS version do you use at your iPhone 6+?

atavci commented 4 years ago

iPhone 6+ is at iOS version 12.4.1 and the iPad's version is at 12.4

alann-maulana commented 4 years ago

Hi @atavci

Finally I can borrow some old iPhone 6 with iOS 12.4.1, fetching master branch..running example..and it is running well. Not publishing it yet to pub server.

Example ranging result

Change your dependencies : from

dependencies:
  flutter_beacon: ^0.2.4

to

dependencies:
  flutter_beacon: 
    git: https://github.com/alann-maulana/flutter_beacon

Hope it can help.

atavci commented 4 years ago

Hello again, it looks like the beacons that I used before didn't support your plugin, I've tried with another iBeacon, now it works very well. Thank you for your help.

alann-maulana commented 4 years ago

Great, you can send me PR to enable scanning for other beacon protocol device @atavci It would be appreciated.