AbobosSoftware / cordova-plugin-brother-label-printer

Cordova and Capacitor plugin for Bother Label Printers
MIT License
11 stars 18 forks source link

Attempting to Call Bluetooth function Error #73

Open Jack-Drake opened 2 months ago

Jack-Drake commented 2 months ago

I am currently running into a problem where when I call window.plugin.brotherPrinter.findBluetoothPrinters(success, failure);. It shows me this error Can request only one set of permissions at a time. There is a screenshot shown below with the current Log being shown when the function is called:

image It seems to show this error and then it does return printers nor does it return an error.

The code below is the cause of this error window.plugin.brotherPrinter.findBluetoothPrinters( (printers) => { console.log("Printers: ", printers); }, (reason => { console.log("Reason: ", reason); }) );

I have tried to fix this in different ways. I read through the previous issues and could not find a similar issue. I also tried to diagnose it maybe some of my previous code is requesting permissions but it does not seem to be the case because there are no other permissions being asked from my code. Any help is appreciated.

Jack-Drake commented 2 months ago

Any help is appreciated, I have looked everywhere for a solution and I can not seem to find one.