kakzaki / blue_thermal_printer

Working with thermal printer via bluetooth (Flutter)
MIT License
164 stars 205 forks source link

Android 12 incomparable #112

Closed swarupbc closed 1 year ago

swarupbc commented 2 years ago

java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1451, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.redoq.kuick.ccapp/com.merchant.restaurants.dineorder.app.MainActivity}: java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@6fced9d7: AdapterService getBondedDevices

the error is still there even after defining the permissions

ebrahimmansur commented 2 years ago

Im facing the same problem, is there a solution?

coyksdev commented 2 years ago

Facing this issue also

mahmoud-atef-eden commented 2 years ago

any solutions ?

ralfazri commented 2 years ago

Facing this issue also, any solution for this?

blitzlepe commented 2 years ago

Use permission_handler . Also set all necessary permissions in Manifest.xml in Android main folder. Im using android 12, no problem at all.

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.