Commit Graph
14 Commits
Author SHA1 Message Date
Jacek Krasiukianis 75dd95e880 Resolve a few warnings 2025-09-16 13:56:43 +00:00
Jacek Krasiukianis 87949338fd Format files before build 2025-08-26 10:30:02 +00:00
Xavi Gil e7ad40c69e SDK bump 0.99.0 + changes in BackgroundTaskExecutor 2025-07-07 10:17:27 +02:00
Maciej Gomółka b0b9b1a15b Before ending recurring background task wait for session to be configured 2025-04-29 10:59:18 +00:00
Maciej Gomółka 22f927b935 Wrap all results in wait for active session, schedule next task only if session is present 2025-04-25 12:58:59 +02:00
Maciej Gomółka b4b5b4876f Update log text 2025-04-25 12:06:49 +02:00
Maciej Gomółka 0c245faf99 Introduce wait for active session before finishing background task
When the app is updated while in the background, the system
cold-launches your process and immediately fires your background task.
Because your initialization (mail user session setup) isn't yet
complete, the background task's work ends too soon and the system
thinks you've finished all background activity.

That violates the expectation that no further background work should
occur once the task reports completion.

Scenario
1. App is installed and user is logged in.
2. User goes background.
3. App is updated.
4. System cold-runs the updated app to execute scheduled background
   tasks.
5. Background task starts together with session initialization.

Background task finsihes first and we let the system know that all
background execution is completed - which is not true and usually
cause crash, in our case `0xdead10cc` - deadlock. The reason is we
didn't have enough of time to release file locks.
2025-04-25 11:24:20 +02:00
Maciej Gomółka 8fe969215a Update background tasks implementation 2025-04-08 09:15:00 +02:00
Maciej Gomółka fdbc3d7e01 Remove setting task as completed on expiration callback 2025-04-08 08:41:47 +02:00
Maciej Gomółka fa5d04920d Bump Rust SDK to 0.70.0 version 2025-04-04 11:52:45 +02:00
Jacek Krasiukianis 46067f355a Set -enable-actor-data-race-checks, cut down on @unchecked Sendable 2025-03-19 12:19:07 +00:00
Maciej Gomółka eea34b5fa5 Refactor after the CR 2025-03-03 17:20:07 +01:00
Maciej Gomółka 1ce967442c Implement transition background task with new background activity tasks API 2025-03-03 13:08:48 +01:00
Maciej Gomółka 03627bf1d5 Integrate new SDK API 2025-03-03 13:08:48 +01:00