react-native-star-prnt
react-native-star-prnt copied to clipboard
[iOS] Exception 'Native GetParsedStatusEx failed' when Printer Turned Off
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
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. 🙃
I don't think I did, sorry.