Closed matthewparavati closed 9 months ago
@matthewparavati We are afraid our late response. I would like more clarity on the timing of this issue.
You are probably getting StarPrinter
instance of the printer found using onPrinterFound
method, but is the connectionSettings
property already empty at this stage?
Thank you in advance.
@bandit-ibayash sorry for the delayed answer. I wasn't sure at the time and didn't find the time to revisit it.
Also, another member of my team worked on an implementation more recently and had more luck than I did so I will close this now
Description
We are having issues storing discovered printers in redux and then using them in different parts of the app or on subsequent app launches.
connectionSettings
in these instances is always empty, which means I am unable to instantiate anew StarPrinter()
with the correct settings for theidentifier
andinterfaceType
I can access the connectionSettings via the private property (
_connectionSettings
), and though and this "works", my editor yells at me that it is private and I shouldn't be accessing it.So two questions:
connectionSettings
empty?new StarPrinter()
?Your device where the bug occurs
Your printer
Your development environment
ProductName: macOS ProductVersion: 12.6 BuildVersion: 21G115
npx react-native info
Additional context
Any other context about your topic.