package com.easy.clean.business.push.fcm

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.easy.clean.bean.push.NotificationSendBean
import com.easy.clean.bean.push.NotificationSendBean.Companion.POPUP_WHERE_FCM
import com.easy.clean.business.helper.EventUtils.event
import com.easy.clean.business.push.notification.MyNotificationManager

class FcmReceiver : BroadcastReceiver() {

    private val TAG = "FcmReceiver"

    override fun onReceive(context: Context, intent: Intent) {
        Log.e(TAG,"FCM_Received FcmReceiver")
        event("FCM_Received", "FcmReceiver", null)
        MyNotificationManager.submitSendBean(NotificationSendBean(context, POPUP_WHERE_FCM))
    }
}
