正在查看: CityMall v1.42.1 应用的 ReactNativeFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 ReactNativeFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package io.invertase.firebase.messaging;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Parcelable;
import android.util.Log;
import com.google.firebase.messaging.RemoteMessage;
import java.util.HashMap;
public class ReactNativeFirebaseMessagingReceiver extends BroadcastReceiver {
static HashMap a = new HashMap();
@Override
public void onReceive(Context context, Intent intent) {
Log.d("RNFirebaseMsgReceiver", "broadcast received for message");
if (io.invertase.firebase.app.a.a() == null) {
io.invertase.firebase.app.a.b(context.getApplicationContext());
}
if (intent.getExtras() == null) {
Log.e("RNFirebaseMsgReceiver", "broadcast intent received with no extras");
return;
}
RemoteMessage remoteMessage = new RemoteMessage(intent.getExtras());
H6.g i = H6.g.i();
if (remoteMessage.getNotification() != null) {
a.put(remoteMessage.getMessageId(), remoteMessage);
v.a().b().c(remoteMessage);
}
if (H6.m.c(context)) {
i.o(u.h(remoteMessage, Boolean.FALSE));
return;
}
try {
Intent intent2 = new Intent(context, (Class<?>) ReactNativeFirebaseMessagingHeadlessService.class);
intent2.putExtra("message", (Parcelable) remoteMessage);
if (context.startService(intent2) != null) {
com.facebook.react.h.e(context);
}
} catch (IllegalStateException e) {
Log.e("RNFirebaseMsgReceiver", "Background messages only work if the message priority is set to 'high'", e);
}
}
}