Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current notifications android

I'm developing for the Android, and I want to be able to get an array of the current notifications. For example, say I have two texts and 3 facebook notifications, I want to be able to get a list of what they are, or at least get the type of them. Is there any possible way to do this with the android api?

like image 348
Jay Avatar asked Mar 27 '12 21:03

Jay


People also ask

Why am I not getting notifications on my Android?

Cause of Notifications Not Showing up on AndroidDo Not Disturb or Airplane Mode is on. Either system or app notifications are disabled. Power or data settings are preventing apps from retrieving notification alerts. Outdated apps or OS software can cause apps to freeze or crash and not deliver notifications.


1 Answers

This is possible with android 4.3 upwards now

See http://developer.android.com/reference/android/service/notification/NotificationListenerService.html#getActiveNotifications()

like image 102
Andrew Avatar answered Oct 27 '22 12:10

Andrew