Code Monkey home page Code Monkey logo

Comments (18)

bradjones1 avatar bradjones1 commented on August 10, 2024 2

@sefatamak I'm just going to chime in here and kindly remind you this is an open-source project for which there is no payment in play. To pressure others to work quickly because of a business consideration on your part is unfair. If it is that important, a typical model in this case would be to offer to sponsor development.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024 1

I still wait for this. When can you do it ?

from react-native-esc-pos.

bradjones1 avatar bradjones1 commented on August 10, 2024 1

@leesiongchan Looks like there is a regression regarding a58c650:

> Task :@leesiongchan_react-native-esc-pos:compileDebugJavaWithJavac FAILED
/home/bradj/www/fishadmin/node_modules/@leesiongchan/react-native-esc-pos/android/src/main/java/leesiongchan/reactnativeescpos/EscPosModule.java:211: error: exception IOException is never thrown in body of corresponding try statement
        } catch (IOException e) {
          ^
/home/bradj/www/fishadmin/node_modules/@leesiongchan/react-native-esc-pos/android/src/main/java/leesiongchan/reactnativeescpos/EscPosModule.java:225: error: exception IOException is never thrown in body of corresponding try statement
        } catch (IOException e) {
          ^
Note: /home/bradj/www/fishadmin/node_modules/@leesiongchan/react-native-esc-pos/android/src/main/java/leesiongchan/reactnativeescpos/EscPosModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

I'm not a java developer myself but after a bit of investigating this seems actually to be related to some missing throws declarations on the constructors for PrinterService. See PR below for an update that at least gets this building.

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024 1

@sefatamakkk did you catch the error? Probably connection issue?

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024 1

@sefatamak Glad to hear that!

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024

Thank you for reporting, I think the library is still unable to handle error correctly, let me relook into the implementation and fix them accordingly in the next few days.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

Thank you for answer. I'll wait for this

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024

How about this coming weekend. I will fix it.

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024

@sefatamak I have just pushed a new version, you should now be able to catch it using .catch or try catch block, I do not have a printer with me now I hope I didn't break anything, please do let me know if it is working. Thanks!

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

@leesiongchan Thank you! I will try it

from react-native-esc-pos.

sefatamakkk avatar sefatamakkk commented on August 10, 2024

It freezes again. It doesn't work. Can you help me ?

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

I put try catch block but it doesn't work. It freezes. You can try it without printer. You can put connect code inside try catch block without printer and app will freezes. I need this when user's printer broke or close.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

Do you look this issue? I need this quickly. Please help me

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on August 10, 2024

@sefatamak I will try to look into the issue over the weekend.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

Ok @leesiongchan please look quickly. My customers wait me for this.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

No its wrong, my app is free. I mean that my users wait me for this. You misunderstand. I just trust this project and team. That's it.

from react-native-esc-pos.

sefatamak avatar sefatamak commented on August 10, 2024

@leesiongchan you can close this issue. I tried again and it works. I think problem is my bundle. I changed version but it didn't change at the begining. Now its ok. App doesn't freezes. Thank you for help 😊

from react-native-esc-pos.

KannarFr avatar KannarFr commented on August 10, 2024

@leesiongchan It still freezing app on connect, the render is applied only after connect success or fail. If I call a print with first instruction "show loader" and then connect, it's waiting for connect to success or fail to really render.

from react-native-esc-pos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.