-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.xml
56 lines (44 loc) · 2.11 KB
/
config.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
<!-- cordova app basic configurations -->
<widget id="com.NAMEOFAPP.byDEVAUTHOR" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<!-- basic settings -->
<name>NAMEOFAPP</name>
<content src="index.html" />
<description>YOURDESCRIPTION</description>
<author email="[email protected]" href="http://DEVAUTHOR.XXX">DEVAUTHORNAME</author>
<!-- screen settings -->
<preference name="BackgroundColor" value="#ffffff" />
<preference name="Fullscreen" value="true" />
<preference name="Orientation" value="portrait" />
<preference name="DisallowOverscroll" value="true" />
<preference name="UIWebViewBounce" value="false" />
<preference name="WebViewBounce" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="true" />
<!--app access settings (more on: https://github.com/apache/cordova-plugin-whitelist) -->
<plugin name="cordova-plugin-device" spec="1" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<access origin="cdvfile://*"/>
<access origin="file:///*"/>
<access origin="file:///persistent/*"/>
<access origin="https://yourlocalhost/*"/>
<access origin="https://yourlocalhost:3000/*"/>
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="AndroidExtraFilesystems" value="assets, root, files, cache, sdcard, cache-external, files-external" />
<icon src="..." /><!--make all icons with cordova-icon-->
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="iosPersistentFileLocation" value="Compatibility" />
<preference name="iosExtraFilesystems" value="assets, root, files,cache, sdcard, cache-external, files-external" />
<icon src="..."><!--make all icons with cordova-icon-->
</platform>
</widget>