@Override
    public void onReceive(Context context, Intent intent) {
        Notification notification = Notification.getFromSharedPreferences(context, intent.getExtras().getInt(Notification.EXTRA_ID));

        // Will remove the notification from SharedPreferences if it is the last one
        notification.clear();
    }
Called when the notification was cleared from the notification center.
@param context Application context
@param intent Received intent with content data
src/android/receiver/ClearReceiver.java