forked from Pushwoosh/pushwoosh-phonegap-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
309 lines (249 loc) · 11.5 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?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="com.pushwoosh.plugins.pushwoosh"
version="7.0.5">
<name>Pushwoosh</name>
<description>
This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).
</description>
<!-- <engines>
<engine name="cordova" version=">=3.1.0" />
</engines> -->
<license>MIT</license>
<repo>https://github.com/Pushwoosh/pushwoosh-phonegap-plugin</repo>
<issue>https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/issues</issue>
<preference name="LOG_LEVEL" default="DEBUG" />
<preference name="IOS_FOREGROUND_ALERT_TYPE" default="NONE" />
<preference name="ANDROID_FOREGROUND_PUSH" default="false" />
<js-module src="www/PushNotification.js" name="PushNotification">
<clobbers target="plugins.pushNotification" />
</js-module>
<!-- android -->
<platform name="android">
<config-file>
<access origin="*.pushwoosh.com" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- GCM connects to Google Services. -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- So the sounds from assets folder could work for notification sounds. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- For local pushes rescheduling and location service restart -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<!--
Creates a custom permission so only this app can receive its messages.
NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE,
where PACKAGE is the application's package name.
-->
<permission
android:name="$PACKAGE_NAME.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Badges -->
<!--for Samsung-->
<uses-permission android:name="com.sec.android.provider.badge.permission.READ"/>
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE"/>
<!--for htc-->
<uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS"/>
<uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT"/>
<!--for sony-->
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE"/>
<uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE"/>
<!--for apex-->
<uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT"/>
<!--for solid-->
<uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE"/>
<!--for huawei-->
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/>
<uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS"/>
<uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS"/>
<!--for ZUK-->
<uses-permission android:name="android.permission.READ_APP_BADGE"/>
<!--for OPPO-->
<uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS"/>
<uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS"/>
<!--for EvMe-->
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_READ"/>
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_WRITE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<meta-data android:name="com.pushwoosh.log_level" android:value="$LOG_LEVEL" />
<meta-data android:name="com.pushwoosh.notification_service_extension" android:value="com.pushwoosh.plugin.pushnotifications.PushwooshNotificationServiceExtension" />
<meta-data android:name="PW_NO_BROADCAST_PUSH" android:value="$ANDROID_FOREGROUND_PUSH" />
<meta-data android:name="com.pushwoosh.plugin.badge" android:value="com.pushwoosh.badge.BadgePlugin" />
<meta-data android:name="com.pushwoosh.plugin.location" android:value="com.pushwoosh.location.LocationPlugin" />
<!-- core -->
<receiver android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</receiver>
<activity
android:name="com.pushwoosh.inapp.WebActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<service android:name=".inapp.InAppRetrieverService"
android:permission="android.permission.BIND_JOB_SERVICE" />
<receiver
android:name="com.pushwoosh.BootReceiver"
android:enabled="true"
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<service
android:name="com.pushwoosh.PushGcmIntentService"
android:exported="false">
<intent-filter android:priority="-50">
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service
android:name="com.pushwoosh.GcmRegistrationService"
android:exported="false">
<intent-filter android:priority="-50">
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<activity
android:name="com.pushwoosh.internal.utils.PermissionActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<receiver android:name="com.pushwoosh.notification.LocalNotificationReceiver" />
<service
android:name="com.pushwoosh.internal.utils.LockScreenService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:enabled="true"
android:exported="false" />
<!-- amazon -->
<provider
android:name="com.pushwoosh.PushwooshInitProvider"
android:authorities="$PACKAGE_NAME.pushwooshinitprovider"
android:enabled="true"
android:exported="false"
android:initOrder="50" />
<service
android:name="com.pushwoosh.PushwooshService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE" />
<receiver
android:name="com.pushwoosh.NotificationOpenReceiver"
android:enabled="true"
android:exported="false" />
<provider
android:name="com.pushwoosh.amazon.AmazonInitProvider"
android:authorities="$PACKAGE_NAME.amazonpushwooshinitprovider"
android:enabled="true"
android:exported="false"
android:initOrder="52" />
<service android:name="com.pushwoosh.PushAmazonIntentService" />
<receiver
android:name="com.pushwoosh.PushAmazonReceiver"
android:permission="com.amazon.device.messaging.permission.SEND">
<intent-filter>
<action android:name="com.amazon.device.messaging.intent.REGISTRATION" />
<action android:name="com.amazon.device.messaging.intent.RECEIVE" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</receiver>
<!-- Beacons -->
<service
android:name="com.pushwoosh.thirdparty.radiusnetworks.ibeacon.service.IBeaconService"
android:enabled="true"
android:exported="true"
android:isolatedProcess="false"
android:label="iBeacon" />
<service
android:name="com.pushwoosh.thirdparty.radiusnetworks.ibeacon.IBeaconIntentProcessor"
android:enabled="true" />
<service android:name="com.pushwoosh.beacon.PushBeaconService" />
<!-- Location -->
<service android:name="com.pushwoosh.location.GeoLocationService" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushNotification">
<param name="android-package" value="com.pushwoosh.plugin.pushnotifications.PushNotifications" onload="true" />
</feature>
</config-file>
<source-file src="src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java"
target-dir="src/com/pushwoosh/plugin/pushnotifications" />
<source-file src="src/android/src/com/pushwoosh/plugin/pushnotifications/PushwooshNotificationServiceExtension.java"
target-dir="src/com/pushwoosh/plugin/pushnotifications" />
<framework src="com.google.android.gms:play-services-gcm:11.2.0" />
<framework src="com.google.android.gms:play-services-location:11.2.0" />
<framework src="com.android.support:support-v4:26.+" />
<lib-file src="src/android/libs/pushwoosh_v5.0.3.jar"/>
<lib-file src="src/android/libs/pushwoosh-amazon_v5.0.3.jar"/>
<lib-file src="src/android/libs/pushwoosh-badge_v5.0.3.jar"/>
<lib-file src="src/android/libs/pushwoosh-beacon_v5.0.3.jar"/>
<lib-file src="src/android/libs/pushwoosh-location_v5.0.3.jar"/>
<framework src="push.gradle" custom="true" type="gradleReference" />
</platform>
<!-- ios -->
<platform name="ios">
<framework src="Security.framework" />
<framework src="Storekit.framework" />
<framework src="CoreLocation.framework" />
<framework src="libstdc++.dylib"/>
<framework src="libz.dylib"/>
<config-file target="config.xml" parent="/*">
<feature name="PushNotification">
<param name="ios-package" value="PushNotification"/>
</feature>
</config-file>
<config-file>
<access origin="*.pushwoosh.com" />
</config-file>
<config-file target="*-Info.plist" parent="Pushwoosh_LOG_LEVEL">
<string>$LOG_LEVEL</string>
</config-file>
<config-file target="*-Info.plist" parent="Pushwoosh_ALERT_TYPE">
<string>$IOS_FOREGROUND_ALERT_TYPE</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>
<header-file src="src/ios/PushNotification.h" target-dir="ios"/>
<source-file src="src/ios/PushNotification.m" target-dir="ios"/>
<header-file src="src/ios/PWLog.h" target-dir="ios"/>
<framework src="src/ios/Pushwoosh.framework" custom="true" />
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="PushNotification">
<param name="wp-package" value="PushNotification"/>
</feature>
</config-file>
<config-file>
<access origin="*.pushwoosh.com" />
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
<Capability Name="ID_CAP_IDENTITY_DEVICE"/>
</config-file>
<source-file src="src/wp8/PushNotification.cs" />
<framework src="src/wp8/PushSDK/Newtonsoft.Json.dll" custom="true" />
<framework src="src/wp8/PushSDK/PushSDK.dll" custom="true" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="src/windows/PushwooshPluginProxy.js" name="PushwooshPluginProxy">
<merges target="" />
</js-module>
<framework src="src/windows/PushSDK/Newtonsoft.Json.dll" custom="true" />
<framework src="src/windows/PushSDK/PushSDK.winmd" custom="true" />
</platform>
</plugin>