Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Kiosk Installation to IONIC 3 #79

Open
webspecialist opened this issue Aug 30, 2019 · 4 comments
Open

Kiosk Installation to IONIC 3 #79

webspecialist opened this issue Aug 30, 2019 · 4 comments
Labels
help wanted ionic Ionic compatibility

Comments

@webspecialist
Copy link

webspecialist commented Aug 30, 2019

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.

@thaarok
Copy link
Owner

thaarok commented Aug 30, 2019

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.

@webspecialist
Copy link
Author

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?

@enzocandotti
Copy link

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);

@webspecialist
Copy link
Author

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

Did it work on IONIC 3 to you?

@thaarok thaarok added the ionic Ionic compatibility label Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted ionic Ionic compatibility
Projects
None yet
Development

No branches or pull requests

3 participants