File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
android/src/main/java/com/iterable/reactnative Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 2.2.0-alpha.2
2+
3+ ### Updates
4+ * Changed ` onJWTError ` to ` onJwtError `
5+ * Changed ` IterableRetryBackoff ` enum keys to be lowercase for consistency
6+ across application
7+
8+ ### Fixes
9+ * Fixed Android ` retryInterval ` not being respected - Android native SDK expects milliseconds while iOS expects seconds, added conversion in Android bridge layer
10+
111## 2.2.0-alpha.1
212
313### Updates
616### Fixes
717* [ SDK-151] Fixed "cannot read property authtoken of undefined" error
818
9-
1019## 2.2.0-alpha.0
1120
1221### Updates
Original file line number Diff line number Diff line change @@ -222,12 +222,17 @@ static IterableConfig.Builder getConfigFromReadableMap(ReadableMap iterableConte
222222 JSONObject retryPolicyJson = iterableContextJSON .getJSONObject ("retryPolicy" );
223223 int maxRetry = retryPolicyJson .getInt ("maxRetry" );
224224 long retryInterval = retryPolicyJson .getLong ("retryInterval" );
225+
226+ // TODO [SDK-197]: Create consistency between Android and iOS
227+ // instead of converting here
228+ // Convert from seconds to milliseconds for Android native SDK
229+ long retryIntervalMs = retryInterval * 1000 ;
225230 String retryBackoff = retryPolicyJson .getString ("retryBackoff" );
226231 RetryPolicy .Type retryPolicyType = RetryPolicy .Type .LINEAR ;
227232 if (retryBackoff .equals ("EXPONENTIAL" )) {
228233 retryPolicyType = RetryPolicy .Type .EXPONENTIAL ;
229234 }
230- configBuilder .setAuthRetryPolicy (new RetryPolicy (maxRetry , retryInterval , retryPolicyType ));
235+ configBuilder .setAuthRetryPolicy (new RetryPolicy (maxRetry , retryIntervalMs , retryPolicyType ));
231236 }
232237
233238 return configBuilder ;
You can’t perform that action at this time.
0 commit comments