Open casvanluijtelaar opened 3 years ago
Hi @casvanluijtelaar
Do you already run the example app (and matching the UUID on region)?
I have, same problems. side note, the example android folder hasn't been migrated yet to android embedding v2
interesting, just tested the example on a nexus 5x and that did find the beacon correctly. I'll do some investigation why it wouldn't work on a oneplus 7 pro
I can't find out any differences between running on the nexus 5x and the oneplus 7 pro. Other play store beacon apps work fine on the oneplus. but this packages stream will never yield anything. The only thing that stands out is that the oneplus permissions default to "only whilst using the app". Any tips of things I can look into?
I've tested this both on an Oneplus 7 pro and a Samsung Galaxy a41 running android 10. In both cases this package doesn't work with the issues described above. is it possible this package isnt compatible with android 10 yet? @alann-maulana
the solutions provided on stackoverflow and here https://github.com/alann-maulana/flutter_beacon/issues/67 did not resolve my problems.
I've tested this both on an Oneplus 7 pro and a Samsung Galaxy a41 running android 10. In both cases this package doesn't work with the issues described above. is it possible this package isnt compatible with android 10 yet? @alann-maulana
I have tested it on my Galaxy phones running Android 10 and 11, there is no issue regarding Android version. It's a bit hard to find/borrow a OnePlus phone here. But, I'll look into it again later for device/Android version issue.
Thanks for reporting.
some general information:
Tested on Mi 9T Android 10 Without any issue.
The only thing I can think of is when asked for Bluetooth permissions both the oneplus and the galaxy only gave the permissions option "only whilst using the app", I see in the source that the "restricted permissions are only for IOS. is there no android equivalent?
The only thing I can think of is when asked for Bluetooth permissions both the oneplus and the galaxy only gave the permissions option "only whilst using the app", I see in the source that the "restricted permissions are only for IOS. is there no android equivalent?
Android 10 has new rules for localization permissions:
https://altbeacon.github.io/android-beacon-library/
For target SDK version 29+ (Android 10, 11) is necessary to add manually ACCESS_FINE_LOCATION
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
and if you want also background scanning:
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
In the following pull request I've ported the example to the embedding v2 and null safety:
hey,
I have been testing out this package, But I'm running into an issue where whatever I try,
flutterBeacon.ranging
will never have a stream update, not with the beacon I'm looking for, not even empty.this is the beacon I have to test with:
this is what the implementation looks like:
I've tested this on the latest stable flutter release on an OnePlus 7 Pro and an LG Nexus 5x. I hope it's something obvious I missed because compared to other beacon packages this one seems to be put together best.