HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
157 stars 102 forks source link

BLEPrinter.getDeviceList() not response #121

Open ngondat97 opened 1 year ago

ngondat97 commented 1 year ago
Screen Shot 2022-08-01 at 10 46 12

I don't get any response from func getDeviceList() including error message

vincentiusadityas commented 1 year ago

Hi, did you find out how to fix this?

axelmarciano commented 9 months ago

Same problem

BerkeAras commented 8 months ago

Same issue

johelder commented 7 months ago

Hi guys, you need to set the devices on react state, then react will re-render and available devices will be into state

saulojoab commented 5 months ago

Having the same issue on iOS. Android works fine.

brunomartins-com commented 3 months ago

Anybody has that issue fixed, please?

lchenfox commented 1 month ago

The same issue on iOS +1

axelmarciano commented 1 month ago

Have you correctly defined the UISupportedExternalAccessoryProtocols,NSBluetoothAlwaysUsageDescription & NSBluetoothPeripheralUsageDescription on IOS ?

lchenfox commented 1 month ago

@axelmarciano Hi, I have already added NSBluetoothAlwaysUsageDescription and NSBluetoothPeripheralUsageDescription without UISupportedExternalAccessoryProtocols. Would you please tell how to add UISupportedExternalAccessoryProtocols and set it's values? So far, getDeviceList still cannot get any reponse on iOS. Any help will be appreciated.

axelmarciano commented 1 month ago

UISupportedExternalAccessoryProtocols should contain manufacturer-specific values. For example:

lchenfox commented 1 month ago

@axelmarciano Thank you so much. I'll have a try.