Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Extra fields can be taken from pushData. Inside is HasMap with extra feeds.

Code Block
public class MyPushBroadcastReceiver extends PushDataReceiver {
    @Override
    public void onPushReceived(PushData pushData) {
        Map<String, String> extraFields = pushData.extraFields;
        String myField = extraFields.get("myField");
    }

    @Override
    public void onPushOpened(PushData pushData) {
        Log.d("APX", "Push opened " + pushData);
    }

    @Override
    public void onPushDismissed(PushData pushData) {
        Log.d("APX", "Push dismissed " + pushData);
    }

    @Override
    public void onSilentPush(PushData pushData) {
        Log.d("APX", "Push Silent " + pushData);
    }
}