Skip to content

Commit 18df7da

Browse files
authored
Merge pull request #906 from Iterable/mob-11292-Push-retry-when-jwt-retry
[MOB - 11292] - Process Pending Action First
2 parents cc70c54 + 4bbe2ec commit 18df7da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
6+
### Fixed
7+
- SDK now retries `trackPushOpen` call when JWT is missing or expired, ensuring reliable push tracking after token acquisition.
68

79
## [3.5.12]
810

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ public static void initialize(@NonNull Context context, @NonNull String apiKey,
618618

619619
sharedInstance.retrieveEmailAndUserId();
620620

621+
IterablePushNotificationUtil.processPendingAction(context);
621622
IterableActivityMonitor.getInstance().registerLifecycleCallbacks(context);
622623
IterableActivityMonitor.getInstance().addCallback(sharedInstance.activityMonitorListener);
623624

@@ -636,7 +637,6 @@ public static void initialize(@NonNull Context context, @NonNull String apiKey,
636637
}
637638

638639
loadLastSavedConfiguration(context);
639-
IterablePushNotificationUtil.processPendingAction(context);
640640
if (DeviceInfoUtils.isFireTV(context.getPackageManager())) {
641641
try {
642642
JSONObject dataFields = new JSONObject();

0 commit comments

Comments
 (0)