Natalia21 / phoneGapIOSPrintingPlugin

Apache License 2.0
2 stars 2 forks source link

Invalid action with function getAvailablePrinters #1

Open dinoRPG opened 8 years ago

dinoRPG commented 8 years ago

Hi, it seems that with April 1st, 2016 commit there was a bug introduced for Android, the function to retrieve the printers was named "isServiceAvailable" before, but then there was a change for IOs and in the printer.js file to rename it to "getAvailablePrinters", but the change wasn't done in the Printer.java file, so everytime you call the function with the new name an error is raised with the message "invalid action".

Besides, the example provided in the README.md file has a typo, the new function name was mispelled as "getAvailablePriner", so the code raises an exception when is run.

shineirvin commented 7 years ago

How did you fix it ?