-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
executable file
·98 lines (79 loc) · 4.14 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="bms-push" version="3.3.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>BMSPush</name>
<dependency id="bms-core"/>
<dependency id="cordova-plugin-cocoapod-support"/>
<dependency id="cordova-plugin-add-swift-support"/>
<js-module name="BMSPush" src="www/BMSPush.js">
<clobbers target="BMSPush" />
</js-module>
<platform name="android">
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<framework src="com.android.support:appcompat-v7:26.1.0" />
<framework src="com.google.firebase:firebase-messaging:10.2.6" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<!--Notification Intent -->
<intent-filter>
<action android:name="$PACKAGE_NAME.IBMPushNotification" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- Add GCM Intent Service and intent-filters for RECEIVE and REGISTRATION of notifications -->
<activity android:name="com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushNotificationHandler"
android:theme="@android:style/Theme.NoDisplay"/>
<service
android:name="com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushIntentService"
android:exported="true" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service
android:name="com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPush"
android:exported="true" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</config-file>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="BMSPushClient">
<param name="android-package" value="com.ibm.mobilefirstplatform.clientsdk.cordovaplugins.push.CDVBMSPush" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<source-file src="src/android/CDVBMSPush.java" target-dir="src/com/ibm/mobilefirstplatform/clientsdk/cordovaplugins/push" />
</platform>
<platform name="ios">
<pods-config use-frameworks="true" ios-min-version="8.0"/>
<pod id="BMSCore" version="~>2.3"/>
<pod id="BMSPush" version="~>3.3"/>
<config-file parent="/*" target="config.xml">
<feature name="BMSPushClient">
<param name="ios-package" value="CDVBMSPush" />
</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/CDVBMSPush.swift" />
<header-file src="src/ios/Bridging-Header.h" />
</platform>
</plugin>