v2.4.0
Custom Key/Value Attribute Support
Carnival.setAttribute(key, value)
Custom Key/Value attributes can be defined on Carnival and then set from the app to track and segment audiences on custom values.
Carnival Docs: Segmentation – Custom Attributes
Carnival Message Read Broadcast
LocalBroadcastManager broadcastManager = LocalBroadcastManager.getInstance(this);
broadcastManager.registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.d(TAG, "Read Message ID: " + intent.getStringExtra(Carnival.EXTRA_MESSAGE_ID));
Log.d(TAG, "Read Message Type (May be null): " + intent.getStringExtra(Carnival.EXTRA_MESSAGE_TYPE));
}
}, new IntentFilter(Carnival.ACTION_MESSAGE_READ));
New broadcast sent for when messages are read from the Carnival Message Stream.