How to print page in Ionic Framework

Please describe the questio Tried to print page in ionic app, I Have used ionic version 6. It works on ionic lab. But when we try to run on android phone it is not working. The code I Used was :

Print(){
Window.print();
}