diff --git a/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/AEPOptimizeError.kt b/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/AEPOptimizeError.kt
index 5a092da4..63a60355 100644
--- a/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/AEPOptimizeError.kt
+++ b/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/AEPOptimizeError.kt
@@ -84,6 +84,7 @@ data class AEPOptimizeError(
return getAdobeErrorFromStatus(data[STATUS] as Int?)
}
+ @JvmStatic
fun getTimeoutError(): AEPOptimizeError {
return AEPOptimizeError(
null,
diff --git a/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/Optimize.java b/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/Optimize.java
index 5033e55c..a0c58bc0 100644
--- a/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/Optimize.java
+++ b/code/optimize/src/main/java/com/adobe/marketing/mobile/optimize/Optimize.java
@@ -49,7 +49,7 @@ private Optimize() {}
* Experience Edge network.
*
*
The returned decision propositions are cached in-memory in the Optimize SDK extension and
- * can be retrieved using {@link #getPropositions(List, AdobeCallback)} API.
+ * can be retrieved using {@link #getPropositions(List, long, AdobeCallback)} API.
*
* @param decisionScopes {@code List} containing scopes for which offers need to
* be updated.
@@ -62,8 +62,8 @@ public static void updatePropositions(
@NonNull final List decisionScopes,
@Nullable final Map xdm,
@Nullable final Map data) {
-
- updatePropositions(decisionScopes, xdm, data, null);
+ final long defaultTimeout = OptimizeConstants.EDGE_CONTENT_COMPLETE_RESPONSE_TIMEOUT;
+ updatePropositions(decisionScopes, xdm, data, defaultTimeout, null);
}
/**
@@ -88,6 +88,44 @@ public static void updatePropositions(
@Nullable final Map xdm,
@Nullable final Map data,
@Nullable final AdobeCallback