package com.rgt.superr.business.push.fcm

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