This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
forked from infobip/mobile-messaging-cordova-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
76 lines (63 loc) · 3.08 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
<?xml version='1.0' encoding='utf-8'?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com-infobip-plugins-mobilemessaging"
version="1.2.3">
<name>MobileMessagingCordova</name>
<keywords>Infobip,push,cordova</keywords>
<engines>
<engine name="cordova-android" version=">=4.1.0"/>
<engine name="cordova-ios" version=">=4.3.0"/>
</engines>
<dependency id="cordova-plugin-add-swift-support"/>
<dependency id="cordova-custom-config"/>
<js-module name="mobileMessaging" src="www/MobileMessagingCordova.js">
<clobbers target="mobileMessaging" />
</js-module>
<hook type="after_plugin_add" src="scripts/installDependencies.js"/>
<hook type="after_prepare" src="scripts/android_fix_google_app_id.js"/>
<hook type="after_prepare" src="scripts/integrate_notification_extension.js"/>
<preference name="ANDROID_SUPPORT_VER_OVERRIDE" default="false" />
<preference name="ANDROID_GMS_VER_OVERRIDE" default="false" />
<platform name="ios">
<hook type="before_plugin_install" src="scripts/build_mobile_messaging_framework.sh"/>
<config-file parent="UIBackgroundModes" target="*Info.plist">
<array>
<string>remote-notification</string>
</array>
</config-file>
<config-file parent="/widget" target="config.xml">
<feature name="MobileMessagingCordova">
<param name="ios-package" value="MobileMessagingCordova" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<framework src="libs/ios/Carthage/Build/iOS/MobileMessaging.framework" custom="true" embed="true"/>
<source-file src="src/ios/MobileMessagingCordova.swift" />
</platform>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="MobileMessagingCordova">
<param name="android-package" value="org.apache.cordova.plugin.MobileMessagingCordova"/>
</feature>
<preference name="IB_ANDROID_SUPPORT_VER_OVERRIDE" value="$ANDROID_SUPPORT_VER_OVERRIDE"/>
<preference name="IB_ANDROID_GMS_VER_OVERRIDE" value="$ANDROID_GMS_VER_OVERRIDE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="org.apache.cordova.plugin.MobileMessagingCordova$MessageActionReceiver" android:exported="false">
<intent-filter>
<action android:name="org.infobip.mobile.messaging.MESSAGE_RECEIVED" />
<action android:name="org.infobip.mobile.messaging.NOTIFICATION_TAPPED" />
</intent-filter>
</receiver>
</config-file>
<framework src="libs/android/mobile-messaging-aar.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/MobileMessagingCordova.java" target-dir="src/org/apache/cordova/plugin"/>
</platform>
</plugin>