januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
361 stars 420 forks source link

Location permission in module #51

Closed huytran123 closed 5 years ago

huytran123 commented 5 years ago

Hi

When i use your module, app asks me allow location permission. I do not know why this module need location permission? please can you give me detail.

I found this code in android module:

int permissionChecked = ContextCompat.checkSelfPermission(reactContext, android.Manifest.permission.ACCESS_COARSE_LOCATION); if (permissionChecked == PackageManager.PERMISSION_DENIED) { // // TODO: 2018/9/21 ActivityCompat.requestPermissions(reactContext.getCurrentActivity(), new String[]{android.Manifest.permission.ACCESS_COARSE_LOCATION}, 1); } Thanks so much

shubhamdeol commented 5 years ago

@huytran123 why you closed the issue?

fnaquira commented 4 years ago

I have the same issue on a fresh installment, what was the solution @huytran123 ?

huytran123 commented 4 years ago

@fnaquira : you can read detail: https://developer.android.com/reference/android/bluetooth/le/BluetoothLeScanner