react-native-esc-pos-printer
react-native-esc-pos-printer copied to clipboard
Can't discover on my RN App
I'm trying to discover an Epson TM-T20II via USB, after following the install instructions (i've installed both react-native-esc-pos-printer and the SDK) and adding the quick test print function, it comes with nothing. Already tried many options on how to work it, maybe missing some USB permissions on the AndroidManifest, etc, but neither seems to work at all, program gets to
const printers = await EscPosPrinter.discover();
And that's it, am i missing something?
Edit: on a side note i'm getting these warning as well
new NativeEventEmitter() was called with a non-null argument without the required addListener method.
new NativeEventEmitter() was called with a non-null argument without the required removeListeners method.
@PHidalgo1 hi! Are you able to connect your printer to your PC (via USB) and print something?
Asking because to make the printer work with a particular type of connection, sometimes you need to update the settings of the printer itself.
@tr3v3r heya! The funny thing is that i was able to discover and print a receipt through an example app EPSON had with the ePOS.jar, and also another module i had to work on for a Sewoo printer, but it's done through bridging a bunch of Java code instead of doing through your module, that said, i can connect the printer to my pc and try and see which settings are there just in case
Same happend with me. I have three devices. On one IOS and Android it worked fine. But on another Android, it's stuck on discover, doesn't even throw error
+1 I'm also stuck on discover on my sumni v2 device with android 11. The discover option worked perfectly on another android 13 device @tr3v3r
The lib supports only devices produced by EPSON.
Please also check if your device is supported here:
Also, you can try to play with filter options introduced in v.3.0.0
For now, closing the issues. Please feel free to reopen if new details appear