thiendangit / react-native-thermal-receipt-printer-image-qr

React native thermal receipt printer
https://www.npmjs.com/package/react-native-thermal-receipt-printer-image-qr
119 stars 80 forks source link

[iOS] Is it my printer or is it this library? #75

Open Rc85 opened 2 years ago

Rc85 commented 2 years ago

This is the printer I got for testing.

https://www.walmart.com/ip/KKmoon-POS-5805DD-Portable-Mini-58mm-Bluetooth-Thermal-Printer-Receipt-Bill-Ticket-POS-Printing-for-iOS-Android-Windows/962404827

My iphone 8 cannot find my printer in bluetooth settings, but the app that the printer came with can as well as other bluetooth scanner apps. Also libraries like react-native-ble-plx and react-native-ble-manager can find my printer. However, the inner mac address that they return is a UUID and not a mac address.

getDeviceList will sometimes find the printer, very random and the inner mac address is also a UUID. Sometimes I can connect to the printer, but it won't print. Other times I get an error connectPrinter: Can't connect to printer D706A718-350E-35A3-1F35-A8EA823B0436.

This is only happening on iOS. On Android, it actually returns a mac address and can print. So is the issue with my printer?