element-hq / element-hq/element-android

Time limit already exhausted for foreground service type dataSync

Open
#9,075 2 comments 4 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

1. Open Element app after several hours of it being in the background (6+?)
2. App crashes with 'Time limit already exhausted for foreground service type dataSync'

[Error in Element e01fa6e4c7e7.txt](https://github.com/user-attachments/files/21973359/Error.in.Element.e01fa6e4c7e7.txt)

Worth calling out that app has full permissions and is set to 'Unrestricted' battery usage. This only started happening within the last few days which makes me suspect 1.6.44 might have introduced this.

### Outcome

#### What did you expect?

Elements to run in the background listening for notifications indefinitely

#### What happened instead?

After a few hours no longer get notifications for new messages, opening app shows a crash report (see attached)

### Your phone model

Pixel 7

### Operating system version

GrapheneOS (2025081400), Android 16

### Application version and app store

1.6.44 installed via F-Droid

### Homeserver

synapse

### Will you send logs?

Yes

### Are you willing to provide a PR?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.