I have prepared a method that prints the element , but it only works properly on the Windows platform and does not work on the Android platform. After searching, I realized that Google Cloud Print can be used, but I realized that it is no longer supported. Please advise how this can be done on the Android platform?
function printData(printDivId) {
const mywindow = window.open("", "PRINT");
mywindow.document.write(document.getElementById(printDivId).innerHTML);
mywindow.document.close();
mywindow.focus();
mywindow.print();
mywindow.close();
return true;
}