SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
385 stars 49 forks source link

Notifications will not sync in the background (GPlay build) #226

Open junetried opened 4 months ago

junetried commented 4 months ago

Describe the bug For a week or two now, I don't receive any notifications when the app isn't in the foreground. I'm using the Google Play release, specifically so I don't have to deal with the annoyance of getting notifications working. In particular, I find that the background service can be a huge source of power drain.

This was working for a while, but suddenly it isn't any longer. The notification troubleshooter doesn't report any issues. The app isn't 'sleeping' or 'deep sleeping' which are both Samsung features. Battery use is set to unrestricted.

To Reproduce Steps to reproduce the behavior:

  1. Open the app and receive a notification - the notification will appear
  2. Close the app and do the same - no notification will appear
  3. Open the app again - the notification will appear, later than it should've

I should note that I am not talking about notifications arriving a bit late - I can wait multiple days between receiving a message and opening the app, and I will get that notification only when I open the app.

Expected behavior Notifications should sync in the background like they do in the foreground.

Smartphone:

Additional context

I'm not sure what other relevant information I can provide, please let me know so I can update this.

BloodyIron commented 2 months ago

I'm having this problem and so is my SO. Can we please get background notification sync looked at, and fixed? This really defeats the whole point of a chat app like this if you never get notified a message has been sent to you.