T
T
TheDoctor2017-09-13 09:40:18
Android
TheDoctor, 2017-09-13 09:40:18

How to get information on an already sent notification?

Hello.
There is an app that sends notifications.
How can I get information about the status of already sent notifications from this application? (read, hidden, deleted)
UPDATE: Thanks
to https://toster.ru/user/thelongrunsmoke for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varakosov, 2017-09-13
@TheDoctor

Until the 18th, the well-known approach works with checking the PendingIntent assigned to the notification.
Starting from the 18th there is a NotificationListenerService. But, more precisely, BUT, access to notifications is required, which can only be obtained by asking the user to provide it manually.
From the 23rd you can use getActiveNotifications() in NotificationManager.
Bottom line: you probably don't need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question