forked from chemerisuk/cordova-plugin-firebase-messaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
87 lines (73 loc) · 3.64 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
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-firebase-messaging"
version="0.12.0">
<name>FirebaseMessagingPlugin</name>
<description>Cordova plugin for Firebase Cloud Messaging</description>
<license>MIT</license>
<keywords>cordova</keywords>
<repo>https://github.com/chemerisuk/cordova-plugin-firebase-messaging</repo>
<issue>https://github.com/chemerisuk/cordova-plugin-firebase-messaging/issues</issue>
<js-module src="www/FirebaseMessaging.js" name="FirebaseMessaging">
<merges target="cordova.plugins.firebase.messaging" />
</js-module>
<engines>
<engine name="cordova" version=">=6.0.0"/>
<engine name="cordova-android" version=">=6.0.0"/>
<engine name="cordova-ios" version=">=4.3.0"/>
</engines>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="FirebaseMessaging">
<param name="ios-package" value="FirebaseMessagingPlugin" />
<param name="onload" value="true" />
</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>
<header-file src="src/ios/AppDelegate+FirebaseMessagingPlugin.h" />
<source-file src="src/ios/AppDelegate+FirebaseMessagingPlugin.m" />
<header-file src="src/ios/FirebaseMessagingPlugin.h" />
<source-file src="src/ios/FirebaseMessagingPlugin.m" />
<framework src="Firebase/Messaging" type="podspec" spec="~> 4.1"/>
</platform>
<platform name="android">
<preference name="FIREBASE_VERSION" default="11.0.+"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="FirebaseMessaging">
<param name="android-package" value="by.chemerisuk.cordova.firebase.FirebaseMessagingPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="by.chemerisuk.cordova.firebase.FirebaseMessagingPluginService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service android:name="by.chemerisuk.cordova.firebase.FirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
</config-file>
<dependency id="cordova-support-google-services" version="~1.0.0"/>
<framework src="com.google.firebase:firebase-messaging:$FIREBASE_VERSION" />
<framework src="me.leolin:ShortcutBadger:1.1.17@aar"/>
<source-file src="src/android/FirebaseMessagingPlugin.java"
target-dir="src/by/chemerisuk/cordova/firebase/" />
<source-file src="src/android/FirebaseInstanceIDService.java"
target-dir="src/by/chemerisuk/cordova/firebase" />
<source-file src="src/android/FirebaseMessagingPluginService.java"
target-dir="src/by/chemerisuk/cordova/firebase" />
</platform>
</plugin>