How to close iphone default keyboard using ionic3 while it is opening in iframe?

i have put my payment gateway inside the iframe and its perfectly worked but whenever i click on the input field for entering card number the default iphone keyboard is opened but it never close by tapping on screen or go to back page.

i have searched lot of things and try some solutions which i found on google but still i can not get any solution.

this.pay= this.navParams.get(“payment”);
this.browser = this.sanitizer.bypassSecurityTrustResourceUrl(this.pay);


have you tried this

this.keyboard.hide();

something you can do when user click on ion content just hide the keyboard and i am not sure this would work without seeing your code.

thanks for replying.

i have tried this solution but it is not working.