Android push notification - determine if Notification.bigContentView is displayed

I am creating a bigContentView notification layout as shown in this blog post . For tracking, it’s important to know if the bigContentView layout was displayed or not? Is there a software way to find out? This may be before I notice or after.

+4
source share
2 answers

Of course, you can set if bigContentView is installed (at least) in your notification, because it depends on the level of the API (API 16): this means that you can easily check whether you have the right to display a large notification or not, and also monitor your indicator by simply checking the level of the api system.

Regarding the display state of the current notification, the only one who knows how it is actually displayed is the system; there really is no way to know if it is expanded or not.

+1
source

The closest thing that I can present at the moment to the notification event is in the GCM BroadcastReceiver method onReceive().

bigContentView, . , " [bigContentView] " .

0

All Articles