-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
58 lines (52 loc) · 3.24 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="uk.co.whiteoctober.cordova.PushNotification" version="0.0.1">
<name>PushNotification</name>
<description>Cordova Push Notification Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,push,notification,gcm,apn</keywords>
<js-module src="www/push-notification.js" name="PushNotification">
<clobbers target="plugin.notification.push" />
</js-module>
<engines>
<engine name="cordova" version=">=3.3.0"/>
</engines>
<!-- Android configuration -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushNotification">
<param name="android-package" value="uk.co.whiteoctober.cordova.PushNotificationPlugin" />
</feature>
</config-file>
<!-- Permissions -->
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
</config-file>
<!-- Receiver and service -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver
android:name="uk.co.whiteoctober.cordova.CordovaGCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</receiver>
<service android:name="uk.co.whiteoctober.cordova.GCMIntentService" />
</config-file>
<!-- Files -->
<source-file src="src/android/libs/google-play-services.jar" target-dir="libs" />
<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/uk/co/whiteoctober/cordova/PushNotificationPlugin.java" target-dir="src/uk/co/whiteoctober/cordova" />
<source-file src="src/android/src/uk/co/whiteoctober/cordova/GCMIntentService.java" target-dir="src/uk/co/whiteoctober/cordova" />
<source-file src="src/android/src/uk/co/whiteoctober/cordova/CordovaGCMBroadcastReceiver.java" target-dir="src/uk/co/whiteoctober/cordova" />
</platform>
</plugin>