BuzzBox
Android Notifications and Analytics
 
 


Notification History

BuzzBox SDK can store notifications in the local database and provides an activity to show the notification feed (all the historical notification that have been sent to the user)

Features


Example of Notification History included in the BuzzBox SDK
In this case, users has recieved 2 notifications (the groups, in yellow)
but all the details are available in the notification feed

Set Up Notification History Activity

Include in your manifest.xml

<activity android:name="com.buzzbox.mob.android.scheduler.ui.NotificationHistoryActivity"/>

In the NotificationHistoryActivity is present in your manifest file, all the notifications that go through the Notification Api will be saved in a local database.
The Activity can show all the notification created by a specific Task. To open the Activity use:

Intent intent = new Intent(HomeActivity.this, NotificationHistoryActivity.class);
intent.putExtra("taskClass", SearchNewItems.class);
intent.putExtra("windowTitle", "Best Apps: Latest Apps");
startActivity(intent);

Note that you must pass the taskClass to the History Activity

Adding items to the History

There is no particular code you have to implement to save items in the notification feed. All the notification returned by your Task will be saved.
As shown in the picture, you can group notifications. Check out the notification api section for more details.

 


BuzzBox Inc. 2010-2011