umair13adil / simple_beacons_flutter

A flutter plugin project to range & monitor iBeacons.
Apache License 2.0
35 stars 42 forks source link

scannerReady never received #69

Open cloudbreakstudios opened 2 years ago

cloudbreakstudios commented 2 years ago

Something has changed recently. My apps are no longer receiving beacon scan results and on further investigation, it appears that we never get the "scannerReady" channel method back!

I have also pulled the latest demo example from git and this is also is not seeing the beacons. I believe the issue is the same.

Logcat is only showing "Method: isPermissionDialogShown". We never see the 'scannerReady' debug.

I have been testing this on a Google Pixel 4 and an Oppo Find x3 lite.

Note - I did have to make some changes to the sample demo in order for it to work...

WidgetsBinding.instance.addObserver(this); was changed to.. WidgetsBinding.instance?.addObserver(this);

and

WidgetsBinding.instance.removeObserver(this);
was changed to.. WidgetsBinding.instance?.removeObserver(this);

cloudbreakstudios commented 1 year ago

See this issue I raised in flutter_blue_plus. Issue seems to be related to latest Android OS (!3)... https://github.com/boskokg/flutter_blue_plus/issues/157

cloudbreakstudios commented 1 year ago

https://developer.android.com/guide/topics/connectivity/bluetooth/permissions?authuser=1