Reputation: 73
In my App i am using the TimerTask
with an Interval
of 1s. If the App is in the background, I show the current Time in the NotificationBar
. So every second in the onTick()
Method I update the silent Notification
. But with Android 10 it stops updating after few minutes. All Notifications
are blocked, also the other channels.
Is there a new permission or another way to show the Time in the NotificationBar
?
Upvotes: 0
Views: 279
Reputation: 2069
your application might be killed in background so that's why it stops showing the updates.
Try using workmanager for your app to run continuously below is the links
Key features:
Upvotes: 2