guatedude2 / cordova-plugin-kiosk-launcher

Sets a Cordova application as a launcher
17 stars 16 forks source link

How to install to IONIC 3 #5

Open webspecialist opened 4 years ago

webspecialist commented 4 years ago

I want to disable the back, the home, the right button and if it is possible the button which closes the device. Someone in stackOverFlow recommend this plugin for me.

My problem is that I can't make it work. I tried to put: 1) window["Kiosk"].isInKiosk((isInKiosk)=>{ this.imer = isInKiosk; }).catch(error=>this.imer = 'no'); 2) cordova.plugins.Kiosk.isInKiosk((isInKiosk)=>{ this.imer = isInKiosk; }); 3) declare let Kiosk:any and in constructor this: Kiosk.setKioskEnabled(true);

I think something I do wrong. How to install this in IONIC 3 from the beginning? Could you provide me all the details? Thank you in advance.

guatedude2 commented 3 years ago

Is this still an issue?

webspecialist commented 3 years ago

Yes! I never found a way to install properly the plugin.