package com.simplecleaner.app.business.push.fcm

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.simplecleaner.app.bean.push.NotificationSendBean
import com.simplecleaner.app.bean.push.NotificationSendBean.Companion.POPUP_WHERE_FCM
import com.simplecleaner.app.business.helper.EventUtils.event
import com.simplecleaner.app.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))
    }
}
