diff --git a/Cards/Assets/Cards/Editor/CardsDependencies.xml b/Cards/Assets/Cards/Editor/CardsDependencies.xml
index 614338e..4470932 100644
--- a/Cards/Assets/Cards/Editor/CardsDependencies.xml
+++ b/Cards/Assets/Cards/Editor/CardsDependencies.xml
@@ -5,7 +5,7 @@
-
+
diff --git a/Core-SDK/Assets/MoEngage/Editor/MoEngageDependencies.xml b/Core-SDK/Assets/MoEngage/Editor/MoEngageDependencies.xml
index b927cdb..17b1ac4 100644
--- a/Core-SDK/Assets/MoEngage/Editor/MoEngageDependencies.xml
+++ b/Core-SDK/Assets/MoEngage/Editor/MoEngageDependencies.xml
@@ -7,7 +7,7 @@
-
+
diff --git a/Core-SDK/Assets/MoEngage/Editor/PostProcessBuild_iOS.cs b/Core-SDK/Assets/MoEngage/Editor/PostProcessBuild_iOS.cs
index 7bf3404..07bac02 100644
--- a/Core-SDK/Assets/MoEngage/Editor/PostProcessBuild_iOS.cs
+++ b/Core-SDK/Assets/MoEngage/Editor/PostProcessBuild_iOS.cs
@@ -178,8 +178,8 @@ public static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
{
using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
{
- sw.WriteLine("\ntarget '" + NOTIFICATION_SERVICE_EXTENSION_TARGET_NAME + "' do\n pod 'MoEngageRichNotification', '~> 7.16.0' \nend");
- sw.WriteLine("\ntarget '" + PUSH_TEMPLATES_EXTENSION_TARGET_NAME + "' do\n pod 'MoEngageRichNotification', '~> 7.16.0' \nend");
+ sw.WriteLine("\ntarget '" + NOTIFICATION_SERVICE_EXTENSION_TARGET_NAME + "' do\n pod 'MoEngage-iOS-SDK/RichNotification','9.18.1' \nend");
+ sw.WriteLine("\ntarget '" + PUSH_TEMPLATES_EXTENSION_TARGET_NAME + "' do\n pod 'MoEngage-iOS-SDK/RichNotification','9.18.1' \nend");
}
}
diff --git a/Core-SDK/Assets/MoEngage/Plugins/iOS/MoEngageUnityUtils.m b/Core-SDK/Assets/MoEngage/Plugins/iOS/MoEngageUnityUtils.m
index 65790cd..964a2e6 100644
--- a/Core-SDK/Assets/MoEngage/Plugins/iOS/MoEngageUnityUtils.m
+++ b/Core-SDK/Assets/MoEngage/Plugins/iOS/MoEngageUnityUtils.m
@@ -23,6 +23,8 @@ + (MoEngageDataCenter)fetchDataCenter {
return MoEngageDataCenterData_center_04;
} else if ([dataCenter isEqualToString:@"DATA_CENTER_05"]){
return MoEngageDataCenterData_center_05;
+ } else if ([dataCenter isEqualToString:@"DATA_CENTER_06"]){
+ return MoEngageDataCenterData_center_06;
}
#endif
return MoEngageDataCenterData_center_01;
diff --git a/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEConstants.cs b/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEConstants.cs
index 96689dc..bc7e3da 100644
--- a/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEConstants.cs
+++ b/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEConstants.cs
@@ -131,8 +131,10 @@ static class MoEConstants
/* ****************************** Init Config Keys ***************************************** */
public const string KEY_INIT_CONFIG = "initConfig";
public const string KEY_PUSH_CONFIG = "pushConfig";
+ public const string KEY_ANALYTICS_CONFIG = "analyticsConfig";
-
+ /* ****************************** Analytics Config Keys ***************************************** */
+ public const string KEY_SHOULD_TRACK_BOOLEAN_AS_NUMBER = "shouldTrackUserAttributeBooleanAsNumber";
/* ****************************** User Delete Keys ***************************************** */
public const string PARAM_IS_SUCCESS = "isSuccess";
@@ -149,6 +151,6 @@ static class MoEConstants
public static class MoEUnityConstants {
/* ****************************** Plugin Version ***************************************** */
- public const string PLUGIN_VERSION = "3.2.0";
+ public const string PLUGIN_VERSION = "4.0.0";
}
}
\ No newline at end of file
diff --git a/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEUtils.cs b/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEUtils.cs
index eed3157..70d3839 100644
--- a/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEUtils.cs
+++ b/Core-SDK/Assets/MoEngage/Scripts/Internal/Utils/MoEUtils.cs
@@ -30,9 +30,20 @@ public class MoEUtils {
return payloadDict;
}
+
+ static Dictionary < string, object > GetAnalyticsConfigPayload(Boolean shouldTrackBooleanAsNumber) {
+ var payloadDict = new Dictionary < string,
+ object > () {
+ {
+ MoEConstants.KEY_SHOULD_TRACK_BOOLEAN_AS_NUMBER, shouldTrackBooleanAsNumber
+ }
+ };
- public static string GetInitializePayload(string gameObjectName, string appId, string shouldDeliverCallbackOnForegroundClick) {
- var dataPayload = new Dictionary < string,
+ return payloadDict;
+ }
+
+ public static string GetInitializePayload(string gameObjectName, string appId, string shouldDeliverCallbackOnForegroundClick, Boolean shouldTrackBooleanAsNumber) {
+ var dataPayload = new Dictionary < string,
object > () {
{
MoEConstants.PAYLOAD_GAME_OBJECT,
@@ -52,6 +63,12 @@ public static string GetInitializePayload(string gameObjectName, string appId, s
}
};
+ var initConfigPayload = new Dictionary {
+ {
+ MoEConstants.KEY_ANALYTICS_CONFIG, GetAnalyticsConfigPayload(shouldTrackBooleanAsNumber)
+ }
+ };
+
var payloadDict = new Dictionary < string,
object > {
{
@@ -64,6 +81,10 @@ public static string GetInitializePayload(string gameObjectName, string appId, s
{
MoEConstants.KEY_INTEGRATION_META,
integrationMetaPayload
+ },
+ {
+ MoEConstants.KEY_INIT_CONFIG,
+ initConfigPayload
}
};
diff --git a/Core-SDK/Assets/MoEngage/Scripts/MoEGameObject.cs b/Core-SDK/Assets/MoEngage/Scripts/MoEGameObject.cs
index e79ac23..d5e73d2 100644
--- a/Core-SDK/Assets/MoEngage/Scripts/MoEGameObject.cs
+++ b/Core-SDK/Assets/MoEngage/Scripts/MoEGameObject.cs
@@ -25,6 +25,9 @@ public class MoEGameObject: MonoBehaviour {
[SerializeField]
private string shouldDeliverCallbackOnForegroundClick;
+ [SerializeField]
+ private Boolean shouldTrackBooleanAsNumber = false;
+
private
const string TAG = "MoEGameObject";
@@ -42,7 +45,8 @@ void Start() {
MoEngageClient.Initialize(
gameObject,
appId,
- shouldDeliverCallbackOnForegroundClick);
+ shouldDeliverCallbackOnForegroundClick,
+ shouldTrackBooleanAsNumber);
}
public void PushToken(string payload) {
diff --git a/Core-SDK/Assets/MoEngage/Scripts/MoEngageClient.cs b/Core-SDK/Assets/MoEngage/Scripts/MoEngageClient.cs
index ebd977f..e5c14c0 100644
--- a/Core-SDK/Assets/MoEngage/Scripts/MoEngageClient.cs
+++ b/Core-SDK/Assets/MoEngage/Scripts/MoEngageClient.cs
@@ -54,9 +54,9 @@ void Awake() {
///
/// Instance of Game Object
/// Account Identifier
- public static void Initialize(GameObject gameObject, string appId, string shouldDeliverCallbackOnForegroundClick = null) {
+ public static void Initialize(GameObject gameObject, string appId, string shouldDeliverCallbackOnForegroundClick = null, Boolean shouldTrackBooleanAsNumber = false) {
MoEngageClient.appId = appId;
- string gameObjPayload = MoEUtils.GetInitializePayload(gameObject ? gameObject.name : null, appId, shouldDeliverCallbackOnForegroundClick);
+ string gameObjPayload = MoEUtils.GetInitializePayload(gameObject ? gameObject.name : null, appId, shouldDeliverCallbackOnForegroundClick, shouldTrackBooleanAsNumber);
Debug.Log(TAG + " : Initialize:: payload: " + gameObjPayload);
#if(UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR
diff --git a/Geofence/Assets/Geofence/Editor/GeofenceDependencies.xml b/Geofence/Assets/Geofence/Editor/GeofenceDependencies.xml
index edd5817..d3b5d73 100644
--- a/Geofence/Assets/Geofence/Editor/GeofenceDependencies.xml
+++ b/Geofence/Assets/Geofence/Editor/GeofenceDependencies.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/changelogs/cards.md b/changelogs/cards.md
index 44fc003..2c1ac04 100644
--- a/changelogs/cards.md
+++ b/changelogs/cards.md
@@ -1,3 +1,8 @@
+# 07-08-2024
+
+- iOS
+ - Updated the MoEngageCards dependency to `4.17.1`
+
# 26-04-2024
- iOS
diff --git a/changelogs/geofence.md b/changelogs/geofence.md
index 9be7d3f..18e7f14 100644
--- a/changelogs/geofence.md
+++ b/changelogs/geofence.md
@@ -1,3 +1,9 @@
+# 07-08-2024
+## 2.0.0
+
+- iOS
+ - Updated the MoEngageGeofence dependency to `5.17.1` and above.
+
# 26-04-2024
## 1.2.0
diff --git a/changelogs/moengage.md b/changelogs/moengage.md
index 9bdd6d6..b25fa2d 100644
--- a/changelogs/moengage.md
+++ b/changelogs/moengage.md
@@ -1,5 +1,14 @@
# MoEngage
+# 07-08-2024
+
+## 4.0.0
+- Added boolean user attribute tracking customization in initialization API
+- iOS
+ - Updated the MoEngage-iOS-SDK dependency to `9.18.1` and above.
+ - Added DC-06 support.
+
+
# 26-04-2024
## 3.2.0
diff --git a/iOS/MoEngageConfiguration.h b/iOS/MoEngageConfiguration.h
index 2cd711d..c1b2089 100755
--- a/iOS/MoEngageConfiguration.h
+++ b/iOS/MoEngageConfiguration.h
@@ -11,7 +11,7 @@
#define kMoEngageAppID @"YOUR APPID"
/// Set DataCenter
-#define kMoEngageRegion NULL// DATA_CENTER_01/DATA_CENTER_02/DATA_CENTER_03/DATA_CENTER_04/DATA_CENTER_05
+#define kMoEngageRegion NULL// DATA_CENTER_01/DATA_CENTER_02/DATA_CENTER_03/DATA_CENTER_04/DATA_CENTER_05/DATA_CENTER_06
/// Set Xcode console logs
#define kMoEngageLogsEnabled YES // YES/NO