forked from awesomejerry/ParsePushNotification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
60 lines (56 loc) · 3.44 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
<?xml version="1.0" encoding="UTF-8" ?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" id="jerry.shen.plugin.ParsePushNotification" version="0.2.6">
<name>ParsePushNotification</name>
<description>ParsePushNotification</description>
<license>MIT</license>
<keywords>phonegap,parse,push,notification,plugin</keywords>
<js-module src="www/parsePushNotification.js" name="ParsePushNotification">
<clobbers target="window.parsePushNotification" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ParsePushNotification">
<param name="android-package" value="jerry.shen.plugin.ParsePushNotification" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver android:name="com.parse.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="$PACKAGE_NAME" />
</intent-filter>
</receiver>
<receiver android:name="jerry.shen.plugin.ParsePushNotificationReceiver" android:exported="false">
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:protectionLevel="signature" android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
</config-file>
<source-file src="src/android/parse-sdk/Parse-1.7.1.jar" target-dir="libs" framework="true" />
<source-file src="src/android/parse-sdk/bolts-android-1.1.3.jar" target-dir="libs" framework="true" />
<source-file src="src/android/ParsePushNotification.java" target-dir="src/jerry/shen/plugin" />
<source-file src="src/android/ParsePushNotificationReceiver.java" target-dir="src/jerry/shen/plugin" />
</platform>
</plugin>