cordova-plugin-printer
cordova-plugin-printer copied to clipboard
pick method returns null
The following method does not open the printer selection window in iOS:
cordova.plugins.printer.pick({ top: 40, left: 30 }, callback);
The method returns null.
cordova.plugins.printer.print() works as expected.
Same for me. IOS 14 iPad.
Same here. iPad Pro(4th generation). Hope this issue would solved soon.
Hey guys. I think I found the solution. The plugin includes platform detection inside the code. The platform detection uses navigator.userAgent.indexOf('ipad') || navigator.userAgent.indexOf('iphone') to detect if the code is running on iPad or iPhone.
I removed the line for isIOS check and it started working like a charm. This is a temporary solution but it's better than nothing.
Later you can unbranch from master, create your own repository and use it with this fix for later plugin install actions. Go to
/cordova-plugin-printer/www/printer.js
Dude that's amazing, thanks for figuring this out 💪
This must still be an issue because I'm struggling to get the pick method to fire on iOS 15
Removed the same isIOS and that got things working, thanks @1nstinct
Is this project still being maintained?
Thanks @1nstinct for finding the origin of the bug ❤️. Personally, I added a check in the isIOS variable on a fork of the project.
|| window.cordova.platformId === "ios"

I created a PR hoping that @katzer would merge the fix 🤞🏻. https://github.com/katzer/cordova-plugin-printer/pull/293