Closed phongbm closed 3 months ago
I'm not sure why Try using a different phone
I see the log:
Unhandled Exception: PlatformException(startScan, Need android.permission.BLUETOOTH_SCAN permission for AttributionSource { uid = 11468, packageName = com.example.bluetooth_print_plus.bluetooth_print_plus_example, attributionTag = null, token = android.os.BinderProxy@27502e, next = null }: Starting discovery., java.lang.SecurityException: Need android.permission.BLUETOOTH_SCAN permission for AttributionSource { uid = 11468, packageName = com.example.bluetooth_print_plus.bluetooth_print_plus_example, attributionTag = null, token = android.os.BinderProxy@27502e, next = null }: Starting discovery.
And I added permissions in AndroidManifest.xml file, but it is still not working, same crash log. I think the application has bug. My phone: Samsung A71 - Android 13 - API 33
try: bluetooth_print_plus: ^2.1.1 I have introduced easyterminations to handle permission issues, you can try it out
The latest version is:bluetooth_print_plus: ^2.1.5 I made some adjustments
The latest version is:bluetooth_print_plus: ^2.1.5 I made some adjustments
startScan(MethodCall call, Result result),此方法里已经执行了result.success(null),那么在调用startScan的时候后面一行不用再执行result.success(null),不然导致重复回调结果报错
👍
I run the sample project and press the Search button, but an error occurred, the application could not find the list of devices.