Skip to content

[SDK-705] IterablePushRegistrationTask as Runnable instead of AsyncTask - #1093

Open
franco-zalamena-iterable wants to merge 1 commit into
masterfrom
feature/sdk-705-push-registration-executor
Open

franco-zalamena-iterable wants to merge 1 commit into
masterfrom
feature/sdk-705-push-registration-executor

Conversation

@franco-zalamena-iterable

@franco-zalamena-iterable franco-zalamena-iterable commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

📝 Summary

🎟️ Jira Ticket: SDK-705

📖 Description

First task replacing asyncTask with a regular Runnable and SDK owned Executor.

Made some changes to have the executor to be injectable and the behavior trackable from tests.

@franco-zalamena-iterable
franco-zalamena-iterable requested a review from a team as a code owner September 16, 2026 15:34
@franco-zalamena-iterable
franco-zalamena-iterable added this pull request to stack #1095 September 17, 2026 15:00
@franco-zalamena-iterable franco-zalamena-iterable changed the title IterablePushRegistrationTask as Runnable instead of AsyncTask [SDK-705] IterablePushRegistrationTask as Runnable instead of AsyncTask Sep 21, 2026
new IterablePushRegistrationTask().execute(data);
}
void executePushRegistrationTask(IterablePushRegistrationData data) {
executor.execute(new IterablePushRegistrationTask(data));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new serial executor stops ordering the operations once ENABLE calls registerDeviceToken(), because that method starts another thread and returns.
A following DISABLE task can therefore enqueue /disableDevice before /registerDeviceToken, so a rapid login/logout sequence may leave the device enabled when registration lands last.

Suggest keeping registration request submission on this serial execution path and adding a deterministic enable-to-disable request-order test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants