Shopify POS, printing custom app

How to create a custom app for printing a window for Shopify POS,

while I’m using “window.print()” it is not working in POS; but working in web. Any solution to generate a custom print window function for POS?