cordova-plugin-appice 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/example/config.xml +59 -59
- package/example/package.json +38 -38
- package/example/res/ai_android.pem +40 -40
- package/example/www/css/index.css +116 -116
- package/example/www/index.html +62 -62
- package/example/www/js/index.js +111 -102
- package/package.json +20 -2
- package/plugin.xml +193 -128
- package/scripts/BeforeAndroidBuilt.js +165 -102
- package/scripts/BeforeIosBuilt.js +35 -35
- package/scripts/androidAfterPluginAdd.js +67 -67
- package/scripts/androidAfterPluginRm.js +112 -112
- package/scripts/iOSAfterPluginAdd.js +58 -58
- package/scripts/iOSAfterPluginRm.js +30 -31
- package/src/android/AppICEFCMPush.java +26 -0
- package/src/android/AppICEMFPPush.java +67 -0
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/AppICEPlugin.java +984 -968
- package/src/android/AppICEPushHandler.java +163 -0
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/CampaignCampsReceiver.java +94 -95
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/NotificationEventService.java +64 -55
- package/src/build.gradle +4 -2
- package/src/ios/AppDelegate+AppICEPlugin.m +178 -89
- package/src/ios/AppICEPlugin.h +3 -0
- package/src/ios/AppICEPlugin.m +55 -10
- package/www/AppICE.js +261 -228
- package/libcordova/android-release-aar.gradle +0 -63
- package/libcordova/build.gradle +0 -50
- package/libcordova/cordova.jar +0 -0
- package/libcordova/proguard-rules.pro +0 -21
- package/libcordova/src/main/AndroidManifest.xml +0 -24
- package/libcordova/src/main/res/values/strings.xml +0 -3
- package/src/firebase/modified/modified.iml +0 -11
- package/src/firebase/original/original.iml +0 -11
package/example/www/js/index.js
CHANGED
|
@@ -1,102 +1,111 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function onDeviceReady() {
|
|
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
|
-
document.getElementById("
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
1
|
+
|
|
2
|
+
document.addEventListener('deviceready', onDeviceReady, false);
|
|
3
|
+
|
|
4
|
+
function testing(deeplink, type) {
|
|
5
|
+
var t1 = JSON.stringify(deeplink);
|
|
6
|
+
console.log("testing " + type + " " + t1)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
AppICE.getDataForKey(deeplink, "cdata", function(result) {
|
|
11
|
+
navigator.notification.alert(
|
|
12
|
+
result, // message
|
|
13
|
+
alertDismissed, // callback
|
|
14
|
+
'For Key = cdata', // title
|
|
15
|
+
'Done' // buttonName
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function alertDismissed() {
|
|
21
|
+
// do something
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function onDeviceReady() {
|
|
25
|
+
// Cordova is now initialized. Have fun!
|
|
26
|
+
|
|
27
|
+
console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
|
|
28
|
+
document.getElementById('deviceready').classList.add('ready');
|
|
29
|
+
document.addEventListener('pushNotificationClicked', e => { testing(e.notification, "notificationCallback") })
|
|
30
|
+
document.addEventListener('pushNotificationClicked', pushNotificationClicked);
|
|
31
|
+
initializesdk()
|
|
32
|
+
}
|
|
33
|
+
function pushNotificationClicked(payload, type) {
|
|
34
|
+
console.log('in testing method');
|
|
35
|
+
//var t1 = JSON.stringify(payload);
|
|
36
|
+
var newPayload = payload['payload'];
|
|
37
|
+
console.log("testing " + type);
|
|
38
|
+
|
|
39
|
+
AppICE.getDataForKey(newPayload, 'eurl', function(result) {
|
|
40
|
+
console.log('result getDataForKey method' + result);
|
|
41
|
+
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
// initialize appice sdk
|
|
45
|
+
document.getElementById("initsdk").addEventListener("click", initializesdk);
|
|
46
|
+
function initializesdk() {
|
|
47
|
+
var certs = [];
|
|
48
|
+
// certs = ["assets/ai_android.pem"]; this is for enabling ssl pinning if no ssl certificates pass null
|
|
49
|
+
console.log("certs : ", certs);
|
|
50
|
+
AppICE.initSdk("5bebe93c25d705690ffbc758", "9e9ec60197c8373a11ac15ce4dae80e973608ab2", "d985715d1bb48942d36d5d08de3b6a8c", "",
|
|
51
|
+
"US",
|
|
52
|
+
"https://a.appice.io",
|
|
53
|
+
certs,
|
|
54
|
+
function (success) {
|
|
55
|
+
console.log("init success", success);
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
}, function (error) {
|
|
59
|
+
console.log("init Failed", error);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
AppICE.setSessionTimeout(1800,
|
|
63
|
+
function (success) {
|
|
64
|
+
console.log("Session success " + success);
|
|
65
|
+
}, function (error) {
|
|
66
|
+
console.log("Session Failed " + error);
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
//set user id
|
|
73
|
+
document.getElementById("userid").addEventListener("click", userid);
|
|
74
|
+
function userid() {
|
|
75
|
+
const userid = ["987"];
|
|
76
|
+
|
|
77
|
+
AppICE.registerLifeCycle(function (success) {
|
|
78
|
+
console.log("registerLifeCycle success", success);
|
|
79
|
+
}, function (error) {
|
|
80
|
+
console.log("registerLifeCycle Failed", error);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
//set user details
|
|
86
|
+
document.getElementById("userinfo").addEventListener("click", userinfo);
|
|
87
|
+
function userinfo() {
|
|
88
|
+
AppICE.setUser("Jhon Doe", "9876543210", "a@gmail.com", function (success) {
|
|
89
|
+
console.log("Set user success", success);
|
|
90
|
+
}, function (error) {
|
|
91
|
+
console.log("Set user error", error);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
//get event
|
|
96
|
+
document.getElementById("event").addEventListener("click", allevent);
|
|
97
|
+
function allevent() {
|
|
98
|
+
console.log("inside event method");
|
|
99
|
+
var dataObj = {
|
|
100
|
+
"ClickedMenuBtn": "false",
|
|
101
|
+
"CLickedSubmitBtn": "false",
|
|
102
|
+
"AppName": "SampleApp"
|
|
103
|
+
};
|
|
104
|
+
AppICE.tagEvent("SampleApp", dataObj,
|
|
105
|
+
function (success) {
|
|
106
|
+
console.log("tagEvent success: " + JSON.stringify(success));
|
|
107
|
+
|
|
108
|
+
}, function (error) {
|
|
109
|
+
console.error("tagEvent Error : " + error);
|
|
110
|
+
});
|
|
111
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-appice",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "AppICE Plugin for Cordova/PhoneGap",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "cordova-plugin-appice",
|
|
@@ -15,6 +15,24 @@
|
|
|
15
15
|
"cordova-ios",
|
|
16
16
|
"cordova-android"
|
|
17
17
|
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"cordovaDependencies": {
|
|
20
|
+
"2.3.2": {
|
|
21
|
+
"cordova-ios": ">=4.3.0",
|
|
22
|
+
"cordova-android": ">6.3.0",
|
|
23
|
+
"cordova": ">=7.0.0"
|
|
24
|
+
},
|
|
25
|
+
"2.6.0": {
|
|
26
|
+
"cordova-ios": ">=4.3.0",
|
|
27
|
+
"cordova-android": ">=11.0.0",
|
|
28
|
+
"cordova": ">=11.0.0"
|
|
29
|
+
},
|
|
30
|
+
"2.7.0": {
|
|
31
|
+
"cordova-android": ">=12.0.0",
|
|
32
|
+
"cordova": ">=12.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
18
36
|
"author": "AppICE",
|
|
19
37
|
"license": "Commercial",
|
|
20
38
|
"bugs": {
|
|
@@ -24,4 +42,4 @@
|
|
|
24
42
|
"dependencies": {
|
|
25
43
|
"shelljs": "^0.8.4"
|
|
26
44
|
}
|
|
27
|
-
}
|
|
45
|
+
}
|
package/plugin.xml
CHANGED
|
@@ -1,128 +1,193 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-appice" version="2.
|
|
3
|
-
<name>AppICE</name>
|
|
4
|
-
<description>AppICE Plugin for Cordova/PhoneGap</description>
|
|
5
|
-
<license>Commercial</license>
|
|
6
|
-
<keywords>AppICE</keywords>
|
|
7
|
-
|
|
8
|
-
<js-module src="www/AppICE.js" name="AppICE">
|
|
9
|
-
<clobbers target="AppICE" />
|
|
10
|
-
</js-module>
|
|
11
|
-
|
|
12
|
-
<engines>
|
|
13
|
-
<engine name="cordova" version=">=3.0.0" />
|
|
14
|
-
</engines>
|
|
15
|
-
|
|
16
|
-
<preference name="APPICE_APP_ID" />
|
|
17
|
-
<preference name="APPICE_APP_KEY" />
|
|
18
|
-
<preference name="APPICE_API_KEY" />
|
|
19
|
-
|
|
20
|
-
<platform name="ios">
|
|
21
|
-
<config-file target="*-Info.plist" parent="AppICEAppID">
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<pods>
|
|
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
|
-
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-appice" version="2.1.1">
|
|
3
|
+
<name>AppICE</name>
|
|
4
|
+
<description>AppICE Plugin for Cordova/PhoneGap</description>
|
|
5
|
+
<license>Commercial</license>
|
|
6
|
+
<keywords>AppICE</keywords>
|
|
7
|
+
|
|
8
|
+
<js-module src="www/AppICE.js" name="AppICE">
|
|
9
|
+
<clobbers target="AppICE" />
|
|
10
|
+
</js-module>
|
|
11
|
+
|
|
12
|
+
<engines>
|
|
13
|
+
<engine name="cordova" version=">=3.0.0" />
|
|
14
|
+
</engines>
|
|
15
|
+
|
|
16
|
+
<preference name="APPICE_APP_ID" />
|
|
17
|
+
<preference name="APPICE_APP_KEY" />
|
|
18
|
+
<preference name="APPICE_API_KEY" />
|
|
19
|
+
|
|
20
|
+
<platform name="ios">
|
|
21
|
+
<config-file target="*-Info.plist" parent="AppICEAppID">
|
|
22
|
+
<string>$APPICE_APP_ID</string>
|
|
23
|
+
</config-file>
|
|
24
|
+
|
|
25
|
+
<config-file target="*-Info.plist" parent="AppICEAppKey">
|
|
26
|
+
<string>$APPICE_APP_KEY</string>
|
|
27
|
+
</config-file>
|
|
28
|
+
|
|
29
|
+
<config-file target="*-Info.plist" parent="AppICEApiKey">
|
|
30
|
+
<string>$APPICE_API_KEY</string>
|
|
31
|
+
</config-file>
|
|
32
|
+
|
|
33
|
+
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
|
|
34
|
+
<string>development</string>
|
|
35
|
+
</config-file>
|
|
36
|
+
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
|
|
37
|
+
<string>production</string>
|
|
38
|
+
</config-file>
|
|
39
|
+
|
|
40
|
+
<podspec>
|
|
41
|
+
<pods>
|
|
42
|
+
<pod name="AppICE-IOS-SDK" spec="1.7.69" />
|
|
43
|
+
</pods>
|
|
44
|
+
</podspec>
|
|
45
|
+
|
|
46
|
+
<config-file target="config.xml" parent="/*">
|
|
47
|
+
<feature name="AppICEPlugin">
|
|
48
|
+
<param name="ios-package" value="AppICEPlugin"/>
|
|
49
|
+
<param name="onload" value="true" />
|
|
50
|
+
</feature>
|
|
51
|
+
</config-file>
|
|
52
|
+
|
|
53
|
+
<header-file src="src/ios/AppDelegate+AppICEPlugin.h" />
|
|
54
|
+
<source-file src="src/ios/AppDelegate+AppICEPlugin.m" />
|
|
55
|
+
<header-file src="src/ios/AppICEPlugin.h" />
|
|
56
|
+
<source-file src="src/ios/AppICEPlugin.m" />
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<framework src="NotificationCenter.framework" />
|
|
60
|
+
<framework src="UserNotificationsUI.framework" weak="true"/>
|
|
61
|
+
<framework src="UserNotifications.framework" />
|
|
62
|
+
<framework src="Security.framework" />
|
|
63
|
+
<framework src="CoreFoundation.framework" />
|
|
64
|
+
<framework src="CFNetwork.framework" />
|
|
65
|
+
<framework src="AVFoundation.framework" />
|
|
66
|
+
<framework src="QuartzCore.framework" />
|
|
67
|
+
<framework src="ImageIO.framework" />
|
|
68
|
+
<framework src="AssetsLibrary.framework" />
|
|
69
|
+
<framework src="SystemConfiguration.framework" />
|
|
70
|
+
<framework src="CoreData.framework" />
|
|
71
|
+
<framework src="CoreTelephony.framework" />
|
|
72
|
+
<framework src="CoreGraphics.framework" />
|
|
73
|
+
<framework src="UIKit.framework" />
|
|
74
|
+
<framework src="Foundation.framework" />
|
|
75
|
+
<framework src="CoreServices.framework" />
|
|
76
|
+
<framework src="libc++.tbd" />
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<hook type="after_plugin_install" src="scripts/iOSAfterPluginAdd.js" />
|
|
80
|
+
<hook type="before_plugin_uninstall" src="scripts/iOSAfterPluginRm.js" />
|
|
81
|
+
<hook type="before_build" src="scripts/BeforeIosBuilt.js" />
|
|
82
|
+
</platform>
|
|
83
|
+
|
|
84
|
+
<platform name="android">
|
|
85
|
+
|
|
86
|
+
<config-file target="config.xml" parent="/*">
|
|
87
|
+
<feature name="AppICEPlugin">
|
|
88
|
+
<param name="android-package" value="com.appice.cordova.AppICEPlugin" />
|
|
89
|
+
<param name="onload" value="true" />
|
|
90
|
+
</feature>
|
|
91
|
+
</config-file>
|
|
92
|
+
|
|
93
|
+
<!-- Version list -->
|
|
94
|
+
<!-- FIREBASE MESSAGING VERSION-->
|
|
95
|
+
<preference name="FIREBASE_MESSAGING_VERSION" default="23.0.6"/>
|
|
96
|
+
|
|
97
|
+
<!-- GLIDE IMAGE LOADER VERSION -->
|
|
98
|
+
<preference name="GLIDE_SDK_VERSION" default="4.12.0"/>
|
|
99
|
+
|
|
100
|
+
<!-- LOCATION APIS VERSION-->
|
|
101
|
+
<preference name="GOOGLE_LOCATION_VERSION" default="21.0.1"/>
|
|
102
|
+
|
|
103
|
+
<!-- LEGACY SUPPORT VERSION-->
|
|
104
|
+
<preference name="ANDROIDX_LEGACY_SUPPORT_VERSION" default="1.0.0"/>
|
|
105
|
+
|
|
106
|
+
<!-- ANDROIDX APIS VERSION-->
|
|
107
|
+
<preference name="ANDROIDX_ANNOTATION_VERSION" default="1.2.0"/>
|
|
108
|
+
<preference name="ANDROIDX_CONCURRENT_FUTURE_VERSION" default="1.1.0"/>
|
|
109
|
+
<preference name="ANDROIDX_LIFECYCLE_SDK_VERSION" default="2.0.0"/>
|
|
110
|
+
<preference name="ANDROIDX_LIFECYCLE_EXTENTION_VERSION" default="2.0.0"/>
|
|
111
|
+
|
|
112
|
+
<!-- WORK MANAGER VERSION-->
|
|
113
|
+
<preference name="WORK_MANAGER_VERSION" default="2.7.1"/>
|
|
114
|
+
|
|
115
|
+
<!-- AppICE VERSION-->
|
|
116
|
+
<preference name="APPICE_VERSION" default="2.5.67"/>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<!-- USES PERMISSION -->
|
|
120
|
+
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
121
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
122
|
+
</config-file>
|
|
123
|
+
|
|
124
|
+
<!-- MANIFEST ENTRIES -->
|
|
125
|
+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
126
|
+
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
|
|
127
|
+
<meta-data android:name="com.semusi.analytics.appid" android:value="$APPICE_APP_ID"/>
|
|
128
|
+
<meta-data android:name="com.semusi.analytics.appkey" android:value="$APPICE_APP_KEY"/>
|
|
129
|
+
<meta-data android:name="com.semusi.analytics.apikey" android:value="$APPICE_API_KEY"/>
|
|
130
|
+
|
|
131
|
+
<service android:name="semusi.activitysdk.Api" android:exported="false" android:protectionLevel="signature"/>
|
|
132
|
+
|
|
133
|
+
<receiver android:name="com.appice.cordova.CampaignCampsReceiver" android:exported="false" android:protectionLevel="signature">
|
|
134
|
+
<intent-filter>
|
|
135
|
+
<action android:name="com.appice.campaignEvent" />
|
|
136
|
+
</intent-filter>
|
|
137
|
+
</receiver>
|
|
138
|
+
<service android:name="com.appice.cordova.NotificationEventService" android:exported="false" android:permission="android.permission.BIND_JOB_SERVICE">
|
|
139
|
+
<intent-filter>
|
|
140
|
+
<action android:name="com.appice.campaignEvent" />
|
|
141
|
+
</intent-filter>
|
|
142
|
+
</service>
|
|
143
|
+
|
|
144
|
+
<activity android:name="semusi.context.ui.UIEventsHandler" android:exported="false" android:protectionLevel="signature" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
|
|
145
|
+
|
|
146
|
+
<activity android:name="semusi.context.ui.AppICENotifUI" android:exported="false">
|
|
147
|
+
<intent-filter>
|
|
148
|
+
<action android:name="AppICE.Notification.FCM_Action"/>
|
|
149
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
150
|
+
</intent-filter>
|
|
151
|
+
|
|
152
|
+
<intent-filter>
|
|
153
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
154
|
+
|
|
155
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
156
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
157
|
+
|
|
158
|
+
<data android:host="ai.io" android:scheme="https"/>
|
|
159
|
+
</intent-filter>
|
|
160
|
+
</activity>
|
|
161
|
+
|
|
162
|
+
<service android:name="semusi.ruleengine.pushmanager.SdkFcmListenerService" android:exported="false" android:protectionLevel="signature">
|
|
163
|
+
<intent-filter>
|
|
164
|
+
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
|
|
165
|
+
</intent-filter>
|
|
166
|
+
</service>
|
|
167
|
+
|
|
168
|
+
<service android:exported="false" android:name="semusi.ruleengine.pushmanager.NotificationEventService" android:permission="android.permission.BIND_JOB_SERVICE">
|
|
169
|
+
</service>
|
|
170
|
+
</config-file>
|
|
171
|
+
|
|
172
|
+
<!-- CLASSES PATH -->
|
|
173
|
+
<source-file src="src/android/AppICEPushHandler.java" target-dir="com/appice/cordova/" />
|
|
174
|
+
<source-file src="src/android/AppICEPlugin.java" target-dir="com/appice/cordova/" />
|
|
175
|
+
<source-file src="src/android/CampaignCampsReceiver.java" target-dir="com/appice/cordova/" />
|
|
176
|
+
<source-file src="src/android/NotificationEventService.java" target-dir="com/appice/cordova/" />
|
|
177
|
+
|
|
178
|
+
<!-- DEPENDENCIES -->
|
|
179
|
+
<framework src="com.google.firebase:firebase-messaging:$FIREBASE_MESSAGING_VERSION" />
|
|
180
|
+
<framework src="com.github.bumptech.glide:glide:$GLIDE_SDK_VERSION"/>
|
|
181
|
+
<framework src= "com.google.android.gms:play-services-location:$GOOGLE_LOCATION_VERSION"/>
|
|
182
|
+
<framework src= "androidx.legacy:legacy-support-v4:$ANDROIDX_LEGACY_SUPPORT_VERSION"/>
|
|
183
|
+
<framework src= "androidx.annotation:annotation:$ANDROIDX_ANNOTATION_VERSION"/>
|
|
184
|
+
<framework src= "androidx.work:work-runtime:$WORK_MANAGER_VERSION"/>
|
|
185
|
+
<framework src= "androidx.concurrent:concurrent-futures:$ANDROIDX_CONCURRENT_FUTURE_VERSION"/>
|
|
186
|
+
<framework src= "androidx.lifecycle:lifecycle-runtime:$ANDROIDX_LIFECYCLE_SDK_VERSION"/>
|
|
187
|
+
<framework src= "androidx.lifecycle:lifecycle-extensions:$ANDROIDX_LIFECYCLE_EXTENTION_VERSION"/>
|
|
188
|
+
<framework src= "appice.io.android:sdk:$APPICE_VERSION"/>
|
|
189
|
+
|
|
190
|
+
<!-- SCRIPT PATH -->
|
|
191
|
+
<hook type="before_build" src="scripts/BeforeAndroidBuilt.js" />
|
|
192
|
+
</platform>
|
|
193
|
+
</plugin>
|