tjfontaine / airprint-generate

Automatically generate AirPrint Avahi service files for CUPS printers
http://www.atxconsulting.com/blog/tjfontaine/2010/11/21/automatically-generate-airprint-avahi-service-files-cups-printers
401 stars 119 forks source link

Emulate/advertise official AirPrint compatibility #22

Open DaveR2408 opened 4 years ago

DaveR2408 commented 4 years ago

Hi all, I‘ve got an issue that is not limited to this script, yet I think for a start chances are that the good people here could guide me to the right direction.

Project idea: Use CUPS to print text via a thermal printer from a specific app (iZettle) that requires AirPrint functionality.

Outcome: Printing to thermal printer works flawlessly when using the airprint-generate.py code here to print some random text within iOS apps like Notes and Mail. However, when using the specific iZettle App, CUPS printer gets detected as an AirPrint printer but when wanting to print, the following error occurs: „UIPrintErrorDomain Error 4“ followed by „Printer couldn‘t be reached“

After talking to Customer Service, iZettle told me that this is a correct behaviour as only official AirPrint printers are allowed to work. This seems to be true as a compatible Canon printer could do the job.

Question (finally) Is there a way to advertise my CUPS printer so that it is recognized as officially AirPrint compatible? Stated differently, does anyone know what it is (key, certificate?) that printer and app have to share with each other to be identified correctly?

Sorry for such a long message. In case that I should try my luck elsewhere, advice on where to go would be highly appreciated. You can find two CUPS logs here. The “faulty” one with iZettle and a working print job using the standard iOS Notes app

Thank you very much and best regards! iZettle.txt Normal_Print.txt

AndrewAubury commented 3 years ago

If anyone has any idea on this please comment, Having the exact same issue with the exact project plan (iZettle -> Receipt Printer)

WanderingApps commented 2 years ago

Likely something very similar with Square POS. iOS sees the AirPrinter, but within the Square app it does not display. Somehow Square is able to determine the printer is not legit.

joschkopf commented 2 years ago

Hi, did you meanwhile find a solution to this issue? I accidently bought a printer which is not compatible with zettle and had the same idea. Really frustrating, as printing "normal" stuff via AirPrint works just fine...

WanderingApps commented 1 year ago

There is a way using a raspberry pi, but it may be more work than just listing your printer on eBay.


From: joschkopf @.> Sent: Friday, June 10, 2022 2:18 PM To: tjfontaine/airprint-generate @.> Cc: WanderingApps @.>; Comment @.> Subject: Re: [tjfontaine/airprint-generate] Emulate/advertise official AirPrint compatibility (#22)

Hi, did you meanwhile find a solution to this issue? I accidently bought a printer which is not compatible with zettle and had the same idea. Really frustrating, as printing "normal" stuff via AirPrint works just fine...

— Reply to this email directly, view it on GitHubhttps://github.com/tjfontaine/airprint-generate/issues/22#issuecomment-1152661390, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANIINNXP3G225CARFBPMU23VOOIJVANCNFSM4NOR5COA. You are receiving this because you commented.Message ID: @.***>

joschkopf commented 1 year ago

I don't understand your reply. I'm not listing my printer on eBay, I bought it from there and I wonder how to make it work with Zettle. So if you know of a way, any hints would be highly appreciated. Thanks!

DaveR2408 commented 6 months ago

Anybody by chance found a solution here?