cordova-plugin-kiosk icon indicating copy to clipboard operation
cordova-plugin-kiosk copied to clipboard

Kiosk Installation to IONIC 3

Open webspecialist opened this issue 6 years ago • 4 comments

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.

First of all I get this error when I am trying to install this in IONIC 3:

Failed to fetch plugin https://github.com/hkalina/cordova-plugin-kiosk.git via registry. Probably this is either a connection problem, or plugin spec is incorrect.

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.

webspecialist avatar Aug 30 '19 06:08 webspecialist

Hi, please check README first: https://github.com/hkalina/cordova-plugin-kiosk/blob/master/README.md The app has to be set as device launcher in the device settings.

thaarok avatar Aug 30 '19 13:08 thaarok

Hello, The first problem is that I can't install this plugin to IONIC 3. Failed to fetch plugin github.com/hkalina/cordova-plugin-kiosk.git via registry.

Ionic CLI : 5.2.3, Cordova 9.0.0 ([email protected]) What can I do?

webspecialist avatar Aug 30 '19 13:08 webspecialist

Could you install it? This worked for me: ionic cordova plugin add https://github.com/hkalina/cordova-plugin-kiosk.git

Then go to your controller and add: declare let KioskPlugin: any;

and you'd be able to call its methods like : KioskPlugin.exitKiosk(); KioskPlugin.setKioskEnabled(true);

enzocandotti avatar Sep 12 '19 15:09 enzocandotti

No I cannot install it in IONIC 3. It says failed to fetch plugin.

Did it work on IONIC 3 to you?

webspecialist avatar Sep 13 '19 06:09 webspecialist