forked from FBNtbrunet/cordova-plugin-kiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
70 lines (58 loc) · 3.29 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-kiosk" version="0.2">
<name>Cordova Kiosk Mode</name>
<author>Jan Kalina</author>
<description>
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 will block hardware buttons and statusbar,
which would allow escape from application.
Escape from app will be possible only by javascript call KioskPlugin.exitKiosk()
or by uninstallation app using adb. (Keeping USB debug allowed recommended.)
If applications starts as usual (not as launcher), no restrictions will be applied.
Plugin website: https://github.com/honza889/cordova-plugin-kiosk
Example app: https://github.com/honza889/cordova-kiosk-demo
This plugin is for Android for now. Support of iOS would be useless,
becase this feature is builded in iOS as Guided Access.
</description>
<keywords>cordova, launcher, homescreen, kiosk, kiosk mode</keywords>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="kiosk.js" name="kioskPlugin">
<clobbers target="window.KioskPlugin" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="KioskPlugin">
<param name="android-package" value="jk.cordova.plugin.kiosk.KioskPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="jk.cordova.plugin.kiosk.KioskActivity"
android:keepScreenOn="true"
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" /><!-- Handler of app icon (required to be launcher) -->
<category android:name="android.intent.category.HOME" /><!-- Handler of Home button -->
</intent-filter>
</activity>
<receiver android:name="jk.cordova.plugin.kiosk.MyPackageReplacedEventReceiver">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.REORDER_TASKS"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
</config-file>
<source-file src="android/KioskActivity.java" target-dir="src/jk/cordova/plugin/kiosk" />
<source-file src="android/KioskPlugin.java" target-dir="src/jk/cordova/plugin/kiosk" />
<source-file src="android/MyPackageReplacedEventReceiver.java" target-dir="src/jk/cordova/plugin/kiosk" />
<source-file src="android/StatusBarOverlay.java" target-dir="src/jk/cordova/plugin/kiosk" />
</platform>
</plugin>