X-HuMan
X-HuMan

Reputation: 1488

Android Notifications disappear after some time

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

Answers (1)

Simon PA
Simon PA

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

Related Questions