forked from phonegap/phonegap-plugin-push
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
executable file
·104 lines (104 loc) · 5.94 KB
/
Copy pathplugin.xml
File metadata and controls
executable file
·104 lines (104 loc) · 5.94 KB
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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="phonegap-plugin-push" version="3.0.1" xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:rim="http://www.blackberry.com/ns/widgets">
<name>PushPlugin</name>
<description> This plugin allows your application to receive push notifications on Android, iOS and Windows devices. Android uses Firebase Cloud Messaging. iOS uses Apple APNS Notifications. Windows uses Microsoft WNS Notifications. </description>
<license>MIT</license>
<js-module name="PushNotification" src="www/push.js">
<clobbers target="PushNotification" />
</js-module>
<engines>
<engine name="cordova" version=">=7.1.0" />
<engine name="cordova-android" version=">=7.1.0" />
<engine name="cordova-ios" version=">=4.5.0" />
</engines>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="PushNotification">
<param name="android-package" value="com.adobe.phonegap.push.PushPlugin" />
</feature>
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<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.VIBRATE" />
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<activity android:exported="true" android:name="com.adobe.phonegap.push.PushHandlerActivity" android:permission="${applicationId}.permission.PushHandlerActivity" />
<receiver android:name="com.adobe.phonegap.push.BackgroundActionButtonHandler" />
<receiver android:name="com.adobe.phonegap.push.PushDismissedHandler" />
<service android:exported="false" android:name="com.adobe.phonegap.push.FCMService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:exported="false" android:name="com.adobe.phonegap.push.PushInstanceIDListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</config-file>
<config-file target="config.xml" parent="/*">
<preference name="AndroidXEnabled" value="true" />
<preference name="GradlePluginGoogleServicesEnabled" value="true" />
<preference name="GradlePluginGoogleServicesVersion" value="4.3.13" />
</config-file>
<preference default="1.6.+" name="ANDROIDX_CORE_VERSION" />
<preference default="23.+" name="FCM_VERSION" />
<framework src="androidx.core:core:$ANDROIDX_CORE_VERSION" />
<framework src="me.leolin:ShortcutBadger:1.1.22@aar" />
<framework src="com.google.firebase:firebase-messaging:$FCM_VERSION" />
<source-file src="src/android/com/adobe/phonegap/push/FCMService.java" target-dir="src/com/adobe/phonegap/push/" />
<source-file src="src/android/com/adobe/phonegap/push/PushConstants.java" target-dir="src/com/adobe/phonegap/push/" />
<source-file src="src/android/com/adobe/phonegap/push/PushHandlerActivity.java" target-dir="src/com/adobe/phonegap/push/" />
<source-file src="src/android/com/adobe/phonegap/push/PushPlugin.java" target-dir="src/com/adobe/phonegap/push/" />
<source-file src="src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java" target-dir="src/com/adobe/phonegap/push/" />
<source-file src="src/android/com/adobe/phonegap/push/PushDismissedHandler.java" target-dir="src/com/adobe/phonegap/push/" />
</platform>
<platform name="browser">
<js-module name="BrowserPush" src="www/browser/push.js">
<clobbers target="PushNotification" />
</js-module>
<asset src="src/browser/ServiceWorker.js" target="ServiceWorker.js" />
<asset src="src/browser/manifest.json" target="manifest.json" />
<hook src="hooks/browser/updateManifest.js" type="after_prepare" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="PushNotification">
<param name="ios-package" value="PushPlugin" />
</feature>
</config-file>
<config-file parent="UIBackgroundModes" target="*-Info.plist">
<array>
<string>remote-notification</string>
</array>
</config-file>
<config-file parent="aps-environment" target="*-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*-Release.plist">
<string>production</string>
</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" />
<framework src="PushKit.framework" />
<podspec>
<config />
<pods use-frameworks="true">
<pod name="Firebase/Messaging" spec="9.6.0" />
</pods>
</podspec>
</platform>
<platform name="windows">
<hook src="hooks/windows/setToastCapable.js" type="after_plugin_install" />
<js-module name="PushPlugin" src="src/windows/PushPluginProxy.js">
<runs />
</js-module>
<config-file parent="/*" target="config.xml">
<preference name="WindowsToastCapable" value="true" />
</config-file>
</platform>
</plugin>