NielsLeenheer/WebBluetoothReceiptPrinter

Clarification on lastUsedDevice

Opened this issue · 0 comments

Hi, first of all thank you for this project. It's really easy to use and helped me out a lot till now.
In the README you mentioned the reconnect() method. What would be the best way to store the device? I tried it using the localstorage (of course saved only the id of the device). I also enabled all necessary flags in chrome. But every time i use the reconnect() method after a reload of the page it does not select the printer i already selected before. Is there a work around or am i missing something?
Thanks for the help in advance.