-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
executable file
·103 lines (86 loc) · 5.2 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads"
id="com.eh.plugins.PushPlugin"
version="1.0.8">
<name>PushPlugin</name>
<author>connectedhome</author>
<description>
This plugin allows your application to receive push notifications on Android, iOS.
Android uses Google Cloud Messaging.
iOS uses Apple APNS Notifications.
</description>
<license>MIT</license>
<js-module src="Example/www/PushNotification.js" name="PushNotification">
<clobbers target="PushNotification" />
</js-module>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushPlugin" >
<param name="android-package" value="com.plugin.gcm.PushPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.plugin.gcm.PushHandlerActivity" android:exported="true"/>
<receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" 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>
<service android:name="com.plugin.gcm.GCMIntentService" />
</config-file>
<source-file src="src/android/libs/gcm.jar" target-dir="libs/" />
<source-file src="src/android/com/plugin/gcm/CordovaGCMBroadcastReceiver.java" target-dir="src/com/plugin/gcm/" />
<source-file src="src/android/com/plugin/gcm/GCMIntentService.java" target-dir="src/com/plugin/gcm/" />
<source-file src="src/android/com/plugin/gcm/PushHandlerActivity.java" target-dir="src/com/plugin/gcm/" />
<source-file src="src/android/com/plugin/gcm/PushPlugin.java" target-dir="src/com/plugin/gcm/" />
<source-file src="src/android/com/plugin/android-support-v13.jar" target-dir="libs/" />
<resource-file src="Example/android/values/strings.xml" target="res/values/strings.xml" />
<resource-file src="Example/android/values-da/strings.xml" target="res/values-da/strings.xml" />
<resource-file src="Example/android/values-de/strings.xml" target="res/values-de/strings.xml" />
<resource-file src="Example/android/values-fr/strings.xml" target="res/values-fr/strings.xml" />
<resource-file src="Example/android/values-it/strings.xml" target="res/values-it/strings.xml" />
<resource-file src="Example/android/values-nb/strings.xml" target="res/values-nb/strings.xml" />
<resource-file src="Example/android/values-sv/strings.xml" target="res/values-sv/strings.xml" />
<resource-file src="Example/android/drawable-mdpi/advisory.png" target="res/drawable-mdpi/advisory.png" />
<resource-file src="Example/android/drawable-mdpi/critical.png" target="res/drawable-mdpi/critical.png" />
<resource-file src="Example/android/drawable-mdpi/important.png" target="res/drawable-mdpi/important.png" />
<resource-file src="Example/android/drawable-hdpi/advisory.png" target="res/drawable-hdpi/advisory.png" />
<resource-file src="Example/android/drawable-hdpi/critical.png" target="res/drawable-hdpi/critical.png" />
<resource-file src="Example/android/drawable-hdpi/important.png" target="res/drawable-hdpi/important.png" />
<resource-file src="Example/android/drawable-xhdpi/advisory.png" target="res/drawable-xhdpi/advisory.png" />
<resource-file src="Example/android/drawable-xhdpi/critical.png" target="res/drawable-xhdpi/critical.png" />
<resource-file src="Example/android/drawable-xhdpi/important.png" target="res/drawable-xhdpi/important.png" />
<resource-file src="Example/android/drawable-xxhdpi/advisory.png" target="res/drawable-xxhdpi/advisory.png" />
<resource-file src="Example/android/drawable-xxhdpi/critical.png" target="res/drawable-xxhdpi/critical.png" />
<resource-file src="Example/android/drawable-xxhdpi/important.png" target="res/drawable-xxhdpi/important.png" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PushPlugin">
<param name="ios-package" value="PushPlugin"/>
</feature>
</config-file>
<source-file src="src/ios/AppDelegate+notification.m" />
<source-file src="src/ios/PushPlugin.m" />
<header-file src="src/ios/AppDelegate+notification.h" />
<header-file src="src/ios/PushPlugin.h" />
</platform>
</plugin>