You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notifications are sometimes shown delayed when the device sleeps. The delays I observed ranged from a few seconds up to around 4:30 minutes. However, when turning the screen on after the reminder's due time, the notification shows immediately.
This also seems to be reproducible to some extend. The procedure I used is:
Schedule a reminder for 5 minutes ahead (or even with only 2 minutes ahead)
Around one minute before due time, turn screen off
Turn screen on a few minutes after due time or wait until the notification eventually comes
The app uses IntentService to show the notification when due. The documentation says:
IntentService will not work correctly when the application is in the background on the latest versions of Android.
The IntentService class was deprecated in API 30 (Android 11). It seems a bit strange that already when running on Android 11 it would fail to work correctly but this could be the reason for the delay.
Possible solution
I will change the implementation to not use IntentService which hopefully solves the problem.
If anyone experiences this or a similar problem, please comment and provide information about the circumstances (especially device and Android information).
The text was updated successfully, but these errors were encountered:
Notifications are sometimes shown delayed when the device sleeps. The delays I observed ranged from a few seconds up to around 4:30 minutes. However, when turning the screen on after the reminder's due time, the notification shows immediately.
This also seems to be reproducible to some extend. The procedure I used is:
See also #13.
Using the app over months, I did not notice this often and there don't seem to be more severe delays.
Device, OS and version information
Conditions
Possible reasons
The app uses
IntentService
to show the notification when due. The documentation says:The IntentService class was deprecated in API 30 (Android 11). It seems a bit strange that already when running on Android 11 it would fail to work correctly but this could be the reason for the delay.
Possible solution
I will change the implementation to not use
IntentService
which hopefully solves the problem.If anyone experiences this or a similar problem, please comment and provide information about the circumstances (especially device and Android information).
The text was updated successfully, but these errors were encountered: