-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyncJobStatus is not triggered for Finish state for android 13 #2046
Comments
@khyativyasargus Could you please help us with the details, specifically on the steps to reproduce. |
Hi @anchita-g , yes sure!
|
Hi @anchita-g , I hope the given explanation was helpful. Let me know if there is any update on this as it's kinda high priority for Emcare. |
Hi @khyativyasargus , thank you for the details on the issue. Yes we are looking into this right now. @santosh-pingle would you be able to provide some updates on this? |
@anchita-g |
Actually,
It looks like the Finished state does not get |
In PeriodicSyncWorker, when FhirSyncWorker updates the finished state, by the time the progress observer listens to it, FhirSyncWorker's state becomes ENQUEUE. As per Android guide, progress information can only be observed and updated while the ListenableWorker is running. |
The following log was captured on top of pr #2053 with oneTimeSyncRequest, where the Finished state is observed in the demo app.
|
I was just checking whether the last progress update would be observed in periodic sync with simple demo changes without flow, but I didn't see the last update get observed until an extra delay was added between setProgress() and the return call from the doWork() API. |
Can you cherry pick the commit from: #2064 to update the dependecies. you wll need to have Java 17 installed for this to work |
Hi @omarismail94 We checked with this commit #2064 with demo app, but sync Finish state isn't being observed still. |
fixed with #2142 |
Describe the bug
A clear and concise description of what the bug is.
Component
Core library
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.
The text was updated successfully, but these errors were encountered: