thaarok / cordova-plugin-kiosk

Cordova plugin to use Cordova application "in kiosk mode" and as Android launcher
Apache License 2.0
142 stars 101 forks source link

Is it possible to prevent the screen to be turn off with power button? #52

Closed gdespirito closed 6 years ago

gdespirito commented 6 years ago

I want to prevent the users to turn off the screen of the tablet with the power button. Is that possible with this plugin?

I tried using https://github.com/katzer/cordova-plugin-background-mode but after installing it, the KioskPlugin.exitKiosk() (or any KioskPlugin functioncall) does not work.

Thanks!

thaarok commented 6 years ago

Did you try the mentioned plugin independently? It does not look there should be some interferences...

gdespirito commented 6 years ago

Hi Jan,

Yes, I tested them independently. Your plugin works great by its own. And the other one works as expected when used with no other plugins.

If I had your plugins installed, as soon as I install the other one, my button for 'Exit kiosk mode' stop working. *and every other call to KioskPlugin.

To replicate, just install the mentioned plugin and it should stop working. I am using Codrova8.

GONZALO DE-SPIRITO ZÚÑIGA | Web Development FRESHWORK STUDIO CHILE

Fijo: 02 - 2979 0059| Móvil: 881 53 776 | gonzalo@freshworkstudio.com gonzalo@freshworkstudio.com

Cuida el medio ambiente. No imprimas este e-mail a menos que sea necesario.

2018-06-01 16:59 GMT-04:00 Jan Kalina notifications@github.com:

Did you try the mentioned plugin independently? It does not look there should be some interferences...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hkalina/cordova-plugin-kiosk/issues/52#issuecomment-394007423, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDWhtFh84JgOnYDFYqmD-NlMrlvd9k2ks5t4asfgaJpZM4UXPai .

thaarok commented 6 years ago

I has just added https://github.com/katzer/cordova-plugin-background-mode.git into cordova-kiosk-demo and both plugins seams working as expected. Please try to debug your application using Chrome Dev Tools and provide any error message from the console: https://medium.com/@coderonfleek/debugging-an-ionic-android-app-using-chrome-dev-tools-6e139b79e8d2

thaarok commented 6 years ago

Please reopen if you will have error output