4

I am trying to create Phonegap app that runs in a "kiosk mode" that won't allow the user to either leave or close the app, have acces to the notification bar or use anything else than the app we created.

The idea is that we incorporate a tablet (samsung galaxy tab 4 10.1) in an endcap which will then be placed in certain stores. Whether or tot the physical buttons on the tablet will accessible to the user has not be defined yet.

I do have experience with Phonegap but i have no idea on how to accomplish this. So far i have tried several guides and resources, i.e. this one: http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/ or solutions as SureLock but without succes.

The tablet we want to use: samsung galaxy tab 4 10.1 (SM-T533)
Android version: 4.4.4
Phonegap version: 5.1.1

2 Answers 2

1

Cordova Kiosk Mode - Cordova plugin to create Cordova application with "kiosk mode". App with this plugin can be set as Android launcher. If app starts as launcher, it blocks hardware buttons and statusbar, so the user cannot close the app until the app request it.

https://github.com/honza889/cordova-plugin-kiosk

Sign up to request clarification or add additional context in comments.

Comments

0

Kiosk mode is highly platform specific. I'd recommend building a native app instead of using phonegap.

If you absolutely want to use phonegap you'd have to implement these hacks inside a plugin (which is in fact native code, so you don't gain anything).

6 Comments

To be perfectly honest, using Phonegap just makes it easier for me to develop an app. Although i have nothing against developing natively, java just issn't my forte as of now.
My point is: the Webview Sandbox is too limited to implement this. Phonegap gives you the possibility to escape this sandbox - but only with the help of native code. If you're really lucky someone has already published a plugin for this, but I doubt it.
I know and that is exactly my intention. It won't be possible without native code. It is just that i have no idea on how to do it since i know to little of java.
You should probably first learn how to use a framework before you start exploiting it... The tutorial you linked is very straightforward and almost can't be explained better.
Above the "hello world" Level, here are some tutorials which might help you in the specific case of your linked hacks developer.android.com/training/basics/activity-lifecycle/… vogella.com/tutorials/AndroidBroadcastReceiver/article.html devahead.com/blog/2011/06/…
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.