-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplugin.xml
272 lines (193 loc) · 11.7 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.pushwoosh.plugins.pushwoosh"
version="3.0.0">
<name>Pushwoosh</name>
<asset src="www/PushNotification.js" target="PushNotification.js" />
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!--library-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<!-- GCM connects to Google Services. -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!--
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"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<action android:name="$PACKAGE_NAME.MESSAGE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.arellomobile.android.push.PushWebview"/>
<activity android:name="com.arellomobile.android.push.MessageActivity"/>
<activity android:name="com.arellomobile.android.push.PushHandlerActivity"/>
<!--
BroadcastReceiver that will receive intents from GCM
services and handle them to the custom IntentService.
The com.google.android.c2dm.permission.SEND permission is necessary
so only GCM services can send data messages for the app.
-->
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
<category android:name="$PACKAGE_NAME"/>
</intent-filter>
</receiver>
<!--
Application-specific subclass of PushGCMIntentService that will
handle received messages.
-->
<service android:name="com.arellomobile.android.push.PushGCMIntentService"/>
<!--
Service for sending location updates
-->
<service android:name="com.arellomobile.android.push.GeoLocationService"/>
<receiver android:name="com.arellomobile.android.push.AlarmReceiver"></receiver>
</config-file>
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
<plugin name="PushNotification"
value="com.pushwoosh.plugin.pushnotifications.PushNotifications" onload="true"/>
</config-file>
<config-file target="res/xml/config.xml" parent="/cordova">
<access origin="https://cp.pushwoosh.com" subdomains="true" />
</config-file>
<source-file src="src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java"
target-dir="src/com/pushwoosh/plugin/pushnotifications/PushNotification.java" />
<source-file src="src/android/src/com/google/android/gcm/GCMBaseIntentService.java"
target-dir="src/com/google/android/gcm" />
<source-file src="src/android/src/com/google/android/gcm/GCMBroadcastReceiver.java"
target-dir="src/com/google/android/gcm" />
<source-file src="src/android/src/com/google/android/gcm/GCMConstants.java"
target-dir="src/com/google/android/gcm" />
<source-file src="src/android/src/com/google/android/gcm/GCMRegistrar.java"
target-dir="src/com/google/android/gcm" />
<source-file src="src/android/src/com/arellomobile/android/push/AlarmReceiver.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/BasePushMessageReceiver.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/DeviceFeature2_5.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/DeviceRegistrar.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/GeoLocationService.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/MessageActivity.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/PushEventsTransmitter.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/PushGCMIntentService.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/PushHandlerActivity.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/PushManager.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/PushWebview.java"
target-dir="src/com/arellomobile/android/push" />
<source-file src="src/android/src/com/arellomobile/android/push/data/PushZoneLocation.java"
target-dir="src/com/arellomobile/android/push/data" />
<source-file src="src/android/src/com/arellomobile/android/push/exception/PushWooshException.java"
target-dir="src/com/arellomobile/android/push/exception" />
<source-file src="src/android/src/com/arellomobile/android/push/preference/SoundType.java"
target-dir="src/com/arellomobile/android/push/preference" />
<source-file src="src/android/src/com/arellomobile/android/push/preference/VibrateType.java"
target-dir="src/com/arellomobile/android/push/preference" />
<source-file src="src/android/src/com/arellomobile/android/push/request/RequestHelper.java"
target-dir="src/com/arellomobile/android/push/request" />
<source-file src="src/android/src/com/arellomobile/android/push/request/versions/Version__1_2.java"
target-dir="src/com/arellomobile/android/push/request/versions" />
<source-file src="src/android/src/com/arellomobile/android/push/request/versions/Version__1_3.java"
target-dir="src/com/arellomobile/android/push/request/versions" />
<source-file src="src/android/src/com/arellomobile/android/push/request/versions/VersionHelper.java"
target-dir="src/com/arellomobile/android/push/request/versions" />
<source-file src="src/android/src/com/arellomobile/android/push/tags/SendPushTagsAbstractAsyncTask.java"
target-dir="src/com/arellomobile/android/push/tags" />
<source-file src="src/android/src/com/arellomobile/android/push/tags/SendPushTagsAsyncTask.java"
target-dir="src/com/arellomobile/android/push/tags" />
<source-file src="src/android/src/com/arellomobile/android/push/tags/SendPushTagsCallBack.java"
target-dir="src/com/arellomobile/android/push/tags" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/executor/ExecutorHelper.java"
target-dir="src/com/arellomobile/android/push/utils/executor" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/GeneralUtils.java"
target-dir="src/com/arellomobile/android/push/utils" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/NetworkUtils.java"
target-dir="src/com/arellomobile/android/push/utils" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/PreferenceUtils.java"
target-dir="src/com/arellomobile/android/push/utils" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/executor/V11ExecutorHelper.java"
target-dir="src/com/arellomobile/android/push/utils/executor" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/WorkerTask.java"
target-dir="src/com/arellomobile/android/push/utils" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/BannerNotificationFactory.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/BaseNotificationFactory.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/Helper.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/NotificationCreator.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/NotificationFactory.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/SimpleNotificationFactory.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
<source-file src="src/android/src/com/arellomobile/android/push/utils/notification/V11NotificationCreator.java"
target-dir="src/com/arellomobile/android/push/utils/notification" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="plugins">
<plugin name="PushNotification"
value="PushNotification" onload="true"/>
</config-file>
<access origin="*.pushwoosh.com" />
<header-file src="PushNotification.h" />
<source-file src="PushNotification.m" />
<header-file src="HtmlWebViewController.h" />
<source-file src="HtmlWebViewController.m" />
<header-file src="PushNotificationManager.h" />
<source-file src="PushNotificationManager.m" />
<header-file src="PWGetNearestZoneRequest.h" />
<source-file src="PWGetNearestZoneRequest.m" />
<header-file src="PWApplicationEventRequest.h" />
<source-file src="PWApplicationEventRequest.m" />
<header-file src="PWPushStatRequest.h" />
<source-file src="PWPushStatRequest.m" />
<header-file src="PWRegisterDeviceRequest.h" />
<source-file src="PWRegisterDeviceRequest.m" />
<header-file src="PWRequest.h" />
<source-file src="PWRequest.m" />
<header-file src="PWRequestManager.h" />
<source-file src="PWRequestManager.m" />
<header-file src="PWSetTagsRequest.h" />
<source-file src="PWSetTagsRequest.m" />
<header-file src="PWAppOpenRequest.h" />
<source-file src="PWAppOpenRequest.m" />
<header-file src="PWSendBadgeRequest.h" />
<source-file src="PWSendBadgeRequest.m" />
</platform>
</plugin>