-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathplugin.xml
executable file
·115 lines (87 loc) · 4.17 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?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="pushbots-cordova-plugin"
version="1.6.21">
<name>Pushbots</name>
<description>PushBots plugin for phonegap.</description>
<repo>https://github.com/pushbots/phonegap</repo>
<issue>https://github.com/pushbots/phonegap/issues</issue>
<author>Abdullah Diaa</author>
<license>Apache 2.0</license>
<keywords>push, notifications, pushnotifications, apns, GCM, FCM, C2DM, Android push notifications,Push Bots, PushBots, phonegap</keywords>
<engines>
<engine name="cordova" version=">=8.0.0"/>
<engine name="cordova-android" version=">=8.0.0"/>
<engine name="cordova-ios" version=">=4.4.0"/>
<engine name="apple-ios" version=">=7.0.0" />
<engine name="apple-xcode" version=">=8.0.0" />
</engines>
<!-- JavaScript interface -->
<js-module src="www/pushbots.js"
name="PushbotsPlugin"
target="www/pushbots.js">
<clobbers target="PushbotsPlugin" />
</js-module>
<!-- android -->
<platform name="android">
<hook type="after_prepare" src="scripts/apply-to-gradle.properties.js" />
<info>
In order to run this plugin, you need to Create application on Pushbots.
Visit https://www.pushbots.help/install-pushbots-in-your-app-or-website/cordova-phonegap-and-phonegap-build/integrating-pushbots-in-your-cordovaphonegap-app
</info>
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="PushbotsPlugin">
<param name="android-package" value="com.pushbots.plugin.PushbotsPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.VIBRATE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="com.pushbots.plugin.PushHandler" />
</config-file>
<source-file src="src/android/com/pushbots/plugin/PushbotsPlugin.java" target-dir="src/com/pushbots/plugin" />
<source-file src="src/android/com/pushbots/plugin/PushHandler.java" target-dir="src/com/pushbots/plugin" />
<framework src="com.pushbots:pushbots-lib:3.3.4-c@aar" />
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>
<!-- iPhone -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PushbotsPlugin">
<param name="ios-package" value="PushbotsPlugin" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>location</string>
<string>remote-notification</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<key>NSLocationWhenInUseUsageDescription</key>
<string>Send Geolocated push notifications</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<key>NSLocationWhenInUseUsageDescription</key>
<string>Send Geolocated push notifications</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<info>
In order to run this plugin, you need to Create application on Pushbots.
Visit https://www.pushbots.help/install-pushbots-in-your-app-or-website/cordova-phonegap-and-phonegap-build/integrating-pushbots-in-your-cordovaphonegap-app
</info>
<header-file src="src/ios/PushbotsPlugin.h" />
<source-file src="src/ios/PushbotsPlugin.m" />
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="CoreLocation.framework" />
<framework src="src/ios/libs/Pushbots.framework" custom="true" />
</platform>
</plugin>