We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
great plugin, thanks
getting runtime exception on Android Methods marked with @UiThread must be executed on the main thread
Methods marked with @UiThread must be executed on the main thread
see Jumping to the UI thread in Android
changes to FlutterBeaconScanner.java to fix
FlutterBeaconScanner.java
import android.os.Looper; import android.os.Handler; private Handler handler; class FlutterBeaconScanner { public FlutterBeaconScanner(...) { ... handler = new Handler(Looper.getMainLooper()); } private final RangeNotifier rangeNotifier = new RangeNotifier() { @Override public void didRangeBeaconsInRegion(Collection<Beacon> collection, Region region) { if (eventSinkRanging != null) { final Map<String, Object> map = ... ... handler.post(new Runnable(){ @Override public void run() { eventSinkRanging.success(map); } }); } } }; public void didEnterRegion(Region region) {...} public void didExitRegion(Region region) {...} public void didDetermineStateForRegion(int state, Region region) {...} }
The text was updated successfully, but these errors were encountered:
can you fork and add a pr with your changes?
Sorry, something went wrong.
PR for #101 (#103)
0c63b2d
* updates #101 * improve null check for event sink and fix typo
Hi, is it possible to release a version that fixes this bug on pub.dev? Thank you in advance!
No branches or pull requests
great plugin, thanks
getting runtime exception on Android
Methods marked with @UiThread must be executed on the main thread
see Jumping to the UI thread in Android
changes to
FlutterBeaconScanner.java
to fixThe text was updated successfully, but these errors were encountered: