Rah*_*Raj 5 google-cloud-print
我在我的Web应用程序中使用Google Cloud打印来打印文档.当我在网络浏览器中运行应用程序时它工作正常..
<script src="http://www.google.com/cloudprint/client/cpgadget.js">
</script>
<script>
window.onload = function () {
alert('Loaded the page');
var gadget = new cloudprint.Gadget();
alert('Loaded the gadget');
gadget.setPrintButton(
cloudprint.Gadget.createDefaultPrintButton("print_button_container"));
gadget.setPrintDocument("url", "Test Page",
"http://www.google.com/landing/cloudprint/testpage.pdf");
}
</script>
Run Code Online (Sandbox Code Playgroud)
但是,当我使用Android中的webView(iOS中的UI Webview)运行应用程序Web应用程序时...打印不起作用.它成功加载打印机列表...我可以选择打印机并进入最终打印页面.之后当我点击打印时,没有任何反应.
请分享您的想法