react-native-star-prnt icon indicating copy to clipboard operation
react-native-star-prnt copied to clipboard

[iOS] Exception 'Native GetParsedStatusEx failed' when Printer Turned Off

Open kevinvangelder opened this issue 6 years ago • 2 comments

Attempting to run StarPRNT.checkStatus after connecting to a printer and then turning the printer off causes

Exception 'Native GetParsedStatusEx failed' was thrown while invoking checkStatus on target RNStarPrnt with params(...)

Maybe this line needs to be wrapped in a try/catch? https://github.com/infoxicator/react-native-star-prnt/blob/3a371b61765bd1c13cfa9226d627c96d5909bf95/ios/RNStarPrnt.m#L109

kevinvangelder avatar Jan 08 '19 21:01 kevinvangelder

I have the same issue. @kevinvangelder did you find a fix that could be implemented on javascript side? I don't think I can use the checkStatus method if there is a possibility of crash.

Help is appreciated. 🙃

AkshatGiri avatar Aug 06 '19 17:08 AkshatGiri

I don't think I did, sorry.

kevinvangelder avatar Sep 04 '19 19:09 kevinvangelder