Get Payload Event

You can get a notification to be aware when a payload is sent to our backend. Just add the below code in you Activity:

protected BroadcastReceiver receiver = null;
protected Context mContext = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Do something
mContext = this;
registerReceiver();
}
protected void registerReceiver() {
receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
// Do something
}
};
LocalBroadcastManager.getInstance(this).registerReceiver((receiver),
new IntentFilter(Moments.PAYLOAD_SENT_INTENT)
);
}
protected void onDestroy() {
LocalBroadcastManager.getInstance(this).unregisterReceiver(receiver);
// Do something
super.onDestroy();
}

Questions?

We are eager to hear from you and happy to share best practices for integrating the SDK. There are many ways for you to reach us:

But first, please sign up for an account with LOTaDATA so that we may send you the link to download our SDK.