Reputation: 1488
Android notifications disappear after some time, without touching it to cancel. What could cause this kind of problem? The notification is started in a Service. Is that possible that the low memory causes this kind of problem?
Upvotes: 1
Views: 2532
Reputation: 746
Make sure that there is no any other service or project module, which does the following call NotificationManager.cancelAll()
to cancel all the notifications. It is always better to keep the notifications controller over Unique ID and cancel only the notifications which are related to that part, by this the code won't touch the notifications posted by other project parts.
NotificationManager documentation.
Upvotes: 2