-
Notifications
You must be signed in to change notification settings - Fork 80
/
plugin.xml
68 lines (56 loc) · 2.85 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-background-fetch"
version="6.0.2">
<name>CDVBackgroundFetch</name>
<description>Cordova Background Fetch Plugin</description>
<license>MIT</license>
<repo>https://github.com/christocracy/cordova-plugin-background-fetch</repo>
<issue>https://github.com/christocracy/cordova-plugin-background-fetch/issues</issue>
<keywords>phonegap,cordova,background fetch</keywords>
<engines>
<engine name="cordova" version=">=7.1.0" />
<engine name="cordova-android" version=">=7.0.0"/>
<engine name="cordova-ios" version=">=4.4.0"/>
</engines>
<js-module src="www/BackgroundFetch.js" name="BackgroundFetch">
<clobbers target="window.BackgroundFetch" />
</js-module>
<platform name="ios">
<!-- Add BGTaskSchedulerPermittedIdentifiers com.transistorsoft.fetch -->
<config-file target="*-Info.plist" parent="BGTaskSchedulerPermittedIdentifiers">
<array>
<string>com.transistorsoft.fetch</string>
</array>
</config-file>
<!-- required background modes: App registers for location updates -->
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>fetch</string>
<string>processing</string>
</array>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="BackgroundFetch">
<param name="ios-package" value="CDVBackgroundFetch"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<framework src="src/ios/TSBackgroundFetch.framework" custom="true"/>
<source-file src="src/ios/CDVBackgroundFetch.m" />
<header-file src="src/ios/CDVBackgroundFetch.h" />
</platform>
<platform name="android">
<resource-file src="src/android/libs/tsbackgroundfetch" target="../../libs/tsbackgroundfetch" />
<source-file src="src/android/CDVBackgroundFetch.java" target-dir="src/com/transistorsoft/cordova/backgroundfetch" />
<source-file src="src/android/BackgroundFetchHeadlessTask.java" target-dir="src/com/transistorsoft/cordova/backgroundfetch" />
<source-file src="src/android/HeadlessTask.java" target-dir="src/com/transistorsoft/cordova/backgroundfetch" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BackgroundFetch">
<param name="android-package" value="com.transistorsoft.cordova.backgroundfetch.CDVBackgroundFetch"/>
</feature>
</config-file>
</platform>
</plugin>