Skip to content

Commit 016561d

Browse files
Merge pull request #882 from Iterable/feature/SDK-520-replace-hardcoded-magic-timeouts
feat(SDK-520): replace magic 1000ms timeouts with named, configurable…
2 parents ce09f80 + 36a1ee5 commit 016561d

4 files changed

Lines changed: 592 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
- Added `Iterable.registerDeviceToken(token)` to re-enable push for the current device.
1313
- Android accepts an FCM token string.
1414
- iOS accepts a continuous hex string representation of the APNS token.
15+
- Replaced the two hardcoded 1000ms magic timeouts in the RN SDK with named,
16+
documented, and configurable values (SDK-520).
17+
- Added `IterableConfig.androidWakeDelayMs` (default `1000`) to tune the
18+
Android deep-link wake delay before the SDK invokes `urlHandler`. Set to
19+
`0` to dispatch synchronously.
20+
- Added `IterableConfig.authCallbackTimeoutMs` (default `6000`) to tune the
21+
safety-net timeout for the auth callback latch. The default is chosen to
22+
comfortably exceed typical mobile auth round-trips while staying well
23+
below the native 30s auth latch ceiling on both iOS and Android.
24+
- The auth callback gate is now event-driven: the native
25+
`handleAuthSuccessCalled` / `handleAuthFailureCalled` events resolve the
26+
latch immediately. The timer survives only as a fallback when no native
27+
event arrives within the configured window, instead of being the primary
28+
resolution mechanism.
1529

1630
### Internal
1731

0 commit comments

Comments
 (0)