Skip to content

Commit 177308b

Browse files
committed
fix: improve handling of retryInterval on re-initialization and add TODO for root cause resolution
1 parent ada0a72 commit 177308b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

android/src/main/java/com/iterable/reactnative/RNIterableAPIModuleImpl.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public void initializeWithApiKey(String apiKey, ReadableMap configReadableMap, S
9393
IterableApi.initialize(reactContext, apiKey, config);
9494

9595
// Update retry policy on existing authManager if it was already created
96-
// This fixes the issue where retryInterval is not respected after re-initialization
96+
// This fixes the issue where retryInterval is not respected after
97+
// re-initialization
98+
// TODO [SDK-197]: Fix the root cause of this issue, instead of this hack
9799
try {
98100
// Use reflection to access package-private fields and methods
99101
java.lang.reflect.Field configRetryPolicyField = config.getClass().getDeclaredField("retryPolicy");
@@ -154,7 +156,9 @@ public void initialize2WithApiKey(String apiKey, ReadableMap configReadableMap,
154156
IterableApi.initialize(reactContext, apiKey, config);
155157

156158
// Update retry policy on existing authManager if it was already created
157-
// This fixes the issue where retryInterval is not respected after re-initialization
159+
// This fixes the issue where retryInterval is not respected after
160+
// re-initialization
161+
// TODO [SDK-197]: Fix the root cause of this issue, instead of this hack
158162
try {
159163
// Use reflection to access package-private fields and methods
160164
java.lang.reflect.Field configRetryPolicyField = config.getClass().getDeclaredField("retryPolicy");

0 commit comments

Comments
 (0)