forked from aerogear/aerogear-cordova-push
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
executable file
·122 lines (119 loc) · 5.51 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
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="aerogear-cordova-push" version="3.0.1">
<name>
AeroGear PushPlugin
</name>
<description>
This plugin allows your application to receive push notifications, using the AeroGear Unified Push Server.
</description>
<license>
Apache 2.0 License
</license>
<keywords>cordova,aerogear,push,ups,unified,push</keywords>
<engines>
<engine name="cordova" version=">=3.4.0"/>
<engine name="cordova-android" version=">=4.0.0" />
</engines>
<dependency id="es6-promise-plugin" url="https://github.com/vstirbu/PromisesPlugin.git"/>
<js-module src="www/aerogear.ajax.js" name="AeroGear.ajax">
<clobbers target="ajax" />
</js-module>
<js-module src="www/aerogear-push.js" name="AeroGear.UnifiedPush">
<clobbers target="push"/>
</js-module>
<platform name="android">
<hook type="before_plugin_install" src="scripts/androidBeforeInstall.js" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PushPlugin">
<param name="android-package" value="org.jboss.aerogear.cordova.push.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"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="org.jboss.aerogear.cordova.push.PushHandlerActivity"/>
<meta-data android:name="DEFAULT_MESSAGE_HANDLER_KEY" android:value="org.jboss.aerogear.cordova.push.NotificationMessageHandler" />
<service android:name="org.jboss.aerogear.android.unifiedpush.fcm.UnifiedPushInstanceIDListenerService" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service android:name="org.jboss.aerogear.android.unifiedpush.fcm.AeroGearFCMMessageReceiver">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</config-file>
<framework src="src/android/dependencies.gradle" type="gradleReference" custom="true"/>
<source-file src="src/android/org/jboss/aerogear/cordova/push/NotificationMessageHandler.java" target-dir="src/org/jboss/aerogear/cordova/push/"/>
<source-file src="src/android/org/jboss/aerogear/cordova/push/PushPlugin.java" target-dir="src/org/jboss/aerogear/cordova/push/"/>
<source-file src="src/android/org/jboss/aerogear/cordova/push/PushHandlerActivity.java" target-dir="src/org/jboss/aerogear/cordova/push/"/>
<source-file src="src/android/org/jboss/aerogear/cordova/push/Message.java" target-dir="src/org/jboss/aerogear/cordova/push/"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PushPlugin">
<param name="ios-package" value="AGPushPlugin"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>remote-notification</string>
</array>
</config-file>
<source-file src="src/ios/AppDelegate+notification.m"/>
<source-file src="src/ios/AGPushPlugin.m"/>
<header-file src="src/ios/AppDelegate+notification.h"/>
<header-file src="src/ios/AGPushPlugin.h"/>
<header-file src="src/ios/AGDeviceRegistration.h"/>
<header-file src="src/ios/AGClientDeviceInformation.h"/>
<header-file src="src/ios/AGPushAnalytics.h"/>
<header-file src="src/ios/AeroGearPush.h"/>
<source-file src="src/ios/libpush-sdk-1.1.1.a" framework="true"/>
</platform>
<platform name="firefoxos">
<config-file target="config.xml" parent="/*">
<permission name="push"/>
<permission name="desktop-notification" />
</config-file>
<js-module src="src/aerogear.custom.js" name="api">
<runs />
</js-module>
<js-module src="src/firefoxos/pushProxy.js" name="AeroGear.UnifiedPushProxy">
<runs />
</js-module>
</platform>
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="PushPlugin">
<param name="wp-package" value="PushPlugin"/>
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PUSH_NOTIFICATION" />
</config-file>
<source-file src="src/wp8/PushPlugin.cs" />
<source-file src="src/wp8/P.xaml" />
<source-file src="src/wp8/P.xaml.cs" />
<source-file src="src/wp8/shared/ILocalStore.cs" />
<source-file src="src/wp8/shared/Installation.cs" />
<source-file src="src/wp8/shared/PushReceivedEvent.cs" />
<source-file src="src/wp8/shared/IUPSHttpClient.cs" />
<source-file src="src/wp8/shared/PushNotification.cs" />
<source-file src="src/wp8/shared/Registration.cs" />
<source-file src="src/wp8/shared/UrlQueryParser.cs" />
<source-file src="src/wp8/shared/PushConfig.cs" />
<source-file src="src/wp8/shared/UPSHttpClient.cs" />
<source-file src="src/wp8/cordova/LocalStore.cs" />
<source-file src="src/wp8/cordova/MpnsRegistration.cs" />
</platform>
<platform name="windows">
<js-module src="src/aerogear.custom.js" name="api">
<runs />
</js-module>
<js-module src="src/windows/pushProxy.js" name="AeroGear.UnifiedPushProxy">
<runs />
</js-module>
</platform>
</plugin>