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.
Files changed (34) hide show
  1. package/README.md +0 -2
  2. package/example/config.xml +59 -59
  3. package/example/package.json +38 -38
  4. package/example/res/ai_android.pem +40 -40
  5. package/example/www/css/index.css +116 -116
  6. package/example/www/index.html +62 -62
  7. package/example/www/js/index.js +111 -102
  8. package/package.json +20 -2
  9. package/plugin.xml +193 -128
  10. package/scripts/BeforeAndroidBuilt.js +165 -102
  11. package/scripts/BeforeIosBuilt.js +35 -35
  12. package/scripts/androidAfterPluginAdd.js +67 -67
  13. package/scripts/androidAfterPluginRm.js +112 -112
  14. package/scripts/iOSAfterPluginAdd.js +58 -58
  15. package/scripts/iOSAfterPluginRm.js +30 -31
  16. package/src/android/AppICEFCMPush.java +26 -0
  17. package/src/android/AppICEMFPPush.java +67 -0
  18. package/{libcordova/src/main/java/com/appice/cordova → src/android}/AppICEPlugin.java +984 -968
  19. package/src/android/AppICEPushHandler.java +163 -0
  20. package/{libcordova/src/main/java/com/appice/cordova → src/android}/CampaignCampsReceiver.java +94 -95
  21. package/{libcordova/src/main/java/com/appice/cordova → src/android}/NotificationEventService.java +64 -55
  22. package/src/build.gradle +4 -2
  23. package/src/ios/AppDelegate+AppICEPlugin.m +178 -89
  24. package/src/ios/AppICEPlugin.h +3 -0
  25. package/src/ios/AppICEPlugin.m +55 -10
  26. package/www/AppICE.js +261 -228
  27. package/libcordova/android-release-aar.gradle +0 -63
  28. package/libcordova/build.gradle +0 -50
  29. package/libcordova/cordova.jar +0 -0
  30. package/libcordova/proguard-rules.pro +0 -21
  31. package/libcordova/src/main/AndroidManifest.xml +0 -24
  32. package/libcordova/src/main/res/values/strings.xml +0 -3
  33. package/src/firebase/modified/modified.iml +0 -11
  34. package/src/firebase/original/original.iml +0 -11
@@ -1,102 +1,111 @@
1
- /*
2
- * Licensed to the Apache Software Foundation (ASF) under one
3
- * or more contributor license agreements. See the NOTICE file
4
- * distributed with this work for additional information
5
- * regarding copyright ownership. The ASF licenses this file
6
- * to you under the Apache License, Version 2.0 (the
7
- * "License"); you may not use this file except in compliance
8
- * with the License. You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing,
13
- * software distributed under the License is distributed on an
14
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- * KIND, either express or implied. See the License for the
16
- * specific language governing permissions and limitations
17
- * under the License.
18
- */
19
-
20
- // Wait for the deviceready event before using any of Cordova's device APIs.
21
- // See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready
22
- document.addEventListener('deviceready', onDeviceReady, false);
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
- initializesdk();
30
- }
31
-
32
- // initialize appice sdk
33
- //document.getElementById("initsdk").addEventListener("click", initializesdk);
34
- function initializesdk(){
35
- var certs = [];
36
- // certs = ["assets/ai_android.pem"]; this is for enabling ssl pinning if no ssl certificates pass null
37
- console.log("certs : ", certs);
38
- AppICE.initSdk("5bebe93c25d705690ffbc758", "9e9ec60197c8373a11ac15ce4dae80e973608ab2", "d985715d1bb48942d36d5d08de3b6a8c", "",
39
- "US",
40
- "https://a.appice.io",
41
- certs,
42
- function (success) {
43
- console.log("init success", success);
44
- }, function (error) {
45
- console.log("init Failed", error);
46
- });
47
-
48
-
49
- AppICE.setSessionTimeout(1800,
50
- function(success){
51
- console.log("Session success " + success);
52
- },function(error){
53
- console.log("Session Failed "+ error);
54
- }
55
- );
56
- }
57
-
58
-
59
- //set user id
60
- document.getElementById("userid").addEventListener("click", userid);
61
- function userid(){
62
- const userid = ["987"];
63
- AppICE.setUserId(userid,
64
- function (success) {
65
- console.log("Set user id success", success);
66
- }, function (error) {
67
- console.log("Set user id Failed", error);
68
- });
69
-
70
- }
71
-
72
-
73
-
74
- //set user details
75
- document.getElementById("userinfo").addEventListener("click", userinfo);
76
- function userinfo(){
77
- AppICE.setUser("Jhon Doe", "9876543210", "a@gmail.com", function (success) {
78
- console.log("Set user success",success);
79
- }, function (error) {
80
- console.log("Set user error",error);
81
- });
82
- }
83
-
84
-
85
- //get event
86
- document.getElementById("event").addEventListener("click", allevent);
87
- function allevent(){
88
- console.log("inside event method");
89
- var dataObj = {
90
- "ClickedMenuBtn":"false",
91
- "CLickedSubmitBtn":"false",
92
- "AppName":"SampleApp"
93
- };
94
- AppICE.tagEvent("SampleApp", dataObj,
95
- function(success) {
96
- console.log("tagEvent success: " + JSON.stringify(success));
97
-
98
- }, function(error) {
99
- console.error("tagEvent Error : " + error);
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.0.09",
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.0.09">
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
-
43
- <pod name="AppICE-IOS-SDK" spec="1.7.59" />
44
- </pods>
45
- </podspec>
46
-
47
- <config-file target="config.xml" parent="/*">
48
- <feature name="AppICEPlugin">
49
- <param name="ios-package" value="AppICEPlugin"/>
50
- <param name="onload" value="true" />
51
- </feature>
52
- </config-file>
53
-
54
- <header-file src="src/ios/AppDelegate+AppICEPlugin.h" />
55
- <source-file src="src/ios/AppDelegate+AppICEPlugin.m" />
56
- <header-file src="src/ios/AppICEPlugin.h" />
57
- <source-file src="src/ios/AppICEPlugin.m" />
58
-
59
-
60
- <framework src="NotificationCenter.framework" />
61
- <framework src="UserNotificationsUI.framework" weak="true"/>
62
- <framework src="UserNotifications.framework" />
63
- <framework src="Security.framework" />
64
- <framework src="CoreFoundation.framework" />
65
- <framework src="CFNetwork.framework" />
66
- <framework src="AVFoundation.framework" />
67
- <framework src="QuartzCore.framework" />
68
- <framework src="ImageIO.framework" />
69
- <framework src="AssetsLibrary.framework" />
70
- <framework src="SystemConfiguration.framework" />
71
- <framework src="CoreData.framework" />
72
- <framework src="CoreTelephony.framework" />
73
- <framework src="CoreGraphics.framework" />
74
- <framework src="UIKit.framework" />
75
- <framework src="Foundation.framework" />
76
- <framework src="CoreServices.framework" />
77
- <framework src="libc++.tbd" />
78
-
79
-
80
- <hook type="after_plugin_install" src="scripts/iOSAfterPluginAdd.js" />
81
- <hook type="before_plugin_uninstall" src="scripts/iOSAfterPluginRm.js" />
82
- <hook type="before_build" src="scripts/BeforeIosBuilt.js" />
83
- </platform>
84
-
85
- <platform name="android">
86
-
87
- <!-- <config-file>
88
- <access origin="*.appice.io" />
89
- </config-file> -->
90
-
91
- <config-file target="config.xml" parent="/*">
92
- <feature name="AppICEPlugin">
93
- <param name="android-package" value="com.appice.cordova.AppICEPlugin" />
94
- <param name="onload" value="true" />
95
- </feature>
96
- </config-file>
97
-
98
- <config-file target="AndroidManifest.xml" parent="/manifest">
99
- <uses-permission android:name="android.permission.INTERNET"/>
100
- <permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
101
- <uses-permission android:name="$PACKAGE_NAME.permission.C2D_MESSAGE"/>
102
- </config-file>
103
-
104
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
105
- <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
106
- <meta-data android:name="com.semusi.analytics.appid" android:value="$APPICE_APP_ID"/>
107
- <meta-data android:name="com.semusi.analytics.appkey" android:value="$APPICE_APP_KEY"/>
108
- <meta-data android:name="com.semusi.analytics.apikey" android:value="$APPICE_API_KEY"/>
109
-
110
- </config-file>
111
-
112
- <framework src="com.google.android.gms:play-services-ads:16.0.0" />
113
- <framework src="com.google.android.gms:play-services-location:21.0.1" />
114
- <framework src="com.google.firebase:firebase-messaging:23.0.6" />
115
- <framework src="com.google.firebase:firebase-core:21.1.0" />
116
- <framework src="com.android.support:support-v4:+" />
117
- <framework src="src/build.gradle" custom="true" type="gradleReference" />
118
- <framework src="appice.io.android:sdk:2.5.64-release"/>
119
-
120
- <!--to add modified firebasex files,includes appice classin
121
- manifest,when SSL pinning enabled adds tag to manifest -->
122
- <hook type="after_plugin_install" src="scripts/androidAfterPluginAdd.js" />
123
- <!-- undo all changes -->
124
- <hook type="before_plugin_uninstall" src="scripts/androidAfterPluginRm.js" />
125
- <!--if MFP PUSH ENABLED then doing changes in manifest and project.properties -->
126
- <hook type="before_build" src="scripts/BeforeAndroidBuilt.js" />
127
- </platform>
128
- </plugin>
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>