android - NotificationManager getActiveNotifications() for older devices -


i want able active notifications android app on demand. (actually need know if there any) i've been searching behavior , seems, have 2 options: notificationmanager.getactivenotifications() need, available sdk 23 or using notificationservice dislike solution have provide permission app read notifications overkill.

does know solution behave notificationmanager.getactivenotifications() , not require sdk >= 23?

thanks in advance!

in project, used static array save pending notifications. array cleared when app come onto foreground. thanks.


Comments