package ca.canadapost.core.common.notification;

import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import nm.a;
import p8.b;

@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\n\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0010\u0010\u0011J\b\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u0006\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016R(\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\b0\u00078\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000e¨\u0006\u0012"}, d2 = {"Lca/canadapost/core/common/notification/PushListener;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "Lrm/n0;", "onCreate", "Lcom/google/firebase/messaging/RemoteMessage;", "message", "onMessageReceived", "", "Lp8/b;", "p", "Ljava/util/List;", "c", "()Ljava/util/List;", "setDelegates", "(Ljava/util/List;)V", "delegates", "<init>", "()V", "core_common_productionRelease"}, k = 1, mv = {1, 9, 0})
/* loaded from: classes.dex */
public final class PushListener extends FirebaseMessagingService {

    /* renamed from: p, reason: collision with root package name and from kotlin metadata */
    public List delegates;

    public final List c() {
        List list = this.delegates;
        if (list != null) {
            return list;
        }
        t.y("delegates");
        return null;
    }

    @Override // android.app.Service
    public void onCreate() {
        super.onCreate();
        a.b(this);
    }

    @Override // com.google.firebase.messaging.FirebaseMessagingService
    public void onMessageReceived(RemoteMessage message) {
        t.g(message, "message");
        Iterator it = c().iterator();
        while (it.hasNext() && !((b) it.next()).a(this, message)) {
        }
    }
}
