forked from aerogear/aerogear-cordova-push
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
executable file
·131 lines (128 loc) · 6.06 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
<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.3.1.dev">
<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=">=6.4.0"/>
<engine name="cordova-android" version=">=5.0.0" />
<engine name="cordova-ios" version=">=4.3.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"/>
<uses-permission android:name="android.permission.INTERNET" />
</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" />
</config-file>
<framework src="com.google.firebase:firebase-messaging:$FIREBASE_VERSION" />
<preference name="FIREBASE_VERSION" default="19.0.0"/>
<framework src="androidx.appcompat:appcompat:1.1.0" />
<framework src="androidx.core:core:1.1.0" />
<framework src="androidx.annotation:annotation:1.1.0" />
<framework src="org.jboss.aerogear:aerogear-android-store:3.0.2" />
<framework src="org.jboss.aerogear:aerogear-android-push:5.1.0" />
<framework src="me.leolin:ShortcutBadger:1.1.12@aar"/>
<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/"/>
<info>
Add an alpha and transparent notification icon into platforms/android/res/drawable folder to show correctly in Android Lollipop and above. The icon name should be icon_white.png
</info>
</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>
<config-file target="*-Debug.plist" parent="aps-environment">
<string>development</string>
</config-file>
<config-file target="*-Release.plist" parent="aps-environment">
<string>production</string>
</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"/>
<framework src="AeroGearPush-ObjC" type="podspec" spec="2.0.1"/>
</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>