문제

Mobile safari for ios4.2 allow printing via air print. Is it possible to do the same via a web app using javascript i.e window.print(); ? I run my webapp using the follow meta tags.

<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-capable" content="yes" />
도움이 되었습니까?

해결책

On a normal webpage, window.print(); will indeed invoke the printing dialog.

Unfortunately it seems that when a webpage is run in the fullscreen webapp mode, window.print(); has no effect (as of iOS 4.2.6). Obviously this could change in the future.

다른 팁

I can confirm that as of iOS 5.0 window.print(); now allows for printing via AirPrint.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top