-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
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
Error in scanning #124
Comments
goto your project -> android -> app -> src -> package name -> AndroidManifest.xml and paste the below code before tag begins.. then stop the app and run again
|
Try checking for permission void initBTprinter() async {
await Permission.bluetoothScan.isDenied.then((value) {
if (value) {
Permission.bluetoothScan.request();
printerManager.startScan(Duration(seconds: 2));
}
});
} |
Hi, i faced this error when the app start scanning.
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: PlatformException(startScan, Need android.permission.BLUETOOTH_SCAN permission for AttributionSource { uid = 10479, packageName = com.example.test_app, attributionTag = null, token = android.os.BinderProxy@899cb68, next = null }: GattService registerScanner, null, null)
i dont know whats the solution, please help me.
thanks
The text was updated successfully, but these errors were encountered: