package com.tgv.malware.business.push.fcm

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