-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discover method doesn't always return connected printer on Android. #36
Comments
@fragilehm hello! Does behavior the same for other OS versions? What do you mean by “not always”? Could you please describe a bit in details please? BTW you don’t need to pair device before discover. Try to disconnect it from device itself and retry discover. |
Thanks @tr3v3r for the quick reply, as you can see on the attached gif when I press the reload button Screen.Recording.2021-11-15.at.20.27.32.movOn iOS it always returns the printer. |
@fragilehm what about versions below 11? As an option we can increase discovery time timeout. For now I stop it manually after 5 sec. you can try to change it here, re-run Android build and test. Line 193 in 0eea276
|
@tr3v3r didn't try on android 10, but most of your customers are on 11. I tried putting a higher number there like 10 seconds the printer is always returned. I see iOS also has the timeout |
@fragilehm I’d really appreciate it if you could add this possibility to pass timeout param! |
Closing the issue as #37 addressed it with increasing the timeout for Android. |
I am running the app on Android 11, with Epson
TM-m30II Bluetooth
printer connected (paired) but in the react-native app, thediscover
method is inconsistent, it doesn't always find a printer. Like if I put a reload button which calls thediscover
method it is not always returning the paired printer. Is it a known issue? (couldn't find anything related in https://github.com/tr3v3r/react-native-esc-pos-printer/issues).The text was updated successfully, but these errors were encountered: