New IterableEmbeddedUpdateHandler methods for sync failure and success.#989
New IterableEmbeddedUpdateHandler methods for sync failure and success.#989franco-zalamena-iterable wants to merge 6 commits intomasterfrom
Conversation
iterableapi/src/main/java/com/iterable/iterableapi/IterableEmbeddedManager.kt
Outdated
Show resolved
Hide resolved
276b142 to
d8bb8e4
Compare
sumeruchat
left a comment
There was a problem hiding this comment.
Also is the refactoring really necesssary. Any refactor runs the risk of introducing regressions. Lets try to get the minimum changeset that accomplishes the task and has no side effects.
Yes i think we should have android and ios matching, this change introduces no behavior change, it is only new callbacks |
d8bb8e4 to
cedf7c2
Compare
This is the most important issue. In the new code: { reason, data -> In the original code, the failure handler had an early return after Recommendation: If this is intentional, document it. If not, either:
The catch block in syncMessages catches JSONException, but |
283449c to
bbcdeed
Compare
🔹 Jira Ticket(s) if any
✏️ Description
Creating new methods regarding sync success and failures for users to be able to act upon result.
Matching listener style from ios side
ios merged pr: Iterable/iterable-swift-sdk#988