package com.arellomobile.android.push;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public abstract class BasePushMessageReceiver extends BroadcastReceiver {
    public static final String DATA_KEY = "data";

    protected abstract void onMessageReceive(String str);

    @Override // android.content.BroadcastReceiver
    public void onReceive(Context context, Intent intent) {
        NotificationManager manager = (NotificationManager) context.getSystemService("notification");
        manager.cancel(PushManager.MESSAGE_ID);
        onMessageReceive(intent.getStringExtra("data"));
    }
}
