正在查看: Fancy Optimizer v4.6.3 应用的 PushFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 PushFirebaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.thinkyeah.common.push.service;
import androidx.annotation.NonNull;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.unity3d.services.core.device.reader.JsonStorageKeyNames;
import java.util.HashMap;
import java.util.Map;
import kk.a;
import kk.d;
import kk.e;
import org.json.JSONException;
import org.json.JSONObject;
import tk.b;
import vj.h;
public class PushFirebaseMessagingService extends FirebaseMessagingService {
public static final h j = new h("PushFirebaseMessagingService");
public final void d(@NonNull RemoteMessage remoteMessage) {
h hVar = j;
hVar.c("==> onMessageReceived");
JSONObject jSONObject = null;
if (remoteMessage.e0() == null) {
String str = (String) remoteMessage.getData().get("push_id");
String str2 = (String) remoteMessage.getData().get("time");
String str3 = (String) remoteMessage.getData().get(JsonStorageKeyNames.DATA_KEY);
hVar.c("getData: " + remoteMessage.getData() + ", messageType: " + remoteMessage.e0());
if (str3 != null) {
try {
jSONObject = new JSONObject(str3);
} catch (JSONException e) {
j.d("PushFCM : Ignoring push because of JSON exception while processing: ".concat(str3), e);
return;
}
}
if (e.a(this).b(str, str2, jSONObject)) {
hVar.c("handlePushData success");
return;
} else {
hVar.c("handlePushData failure");
return;
}
}
e a = e.a(this);
RemoteMessage.a e0 = remoteMessage.e0();
Map data = remoteMessage.getData();
synchronized (a) {
if (d.g != null) {
String str4 = (String) data.get("custom_action_type");
if (str4 == null) {
str4 = (String) data.get("action");
}
if (str4 == null) {
str4 = (String) data.get("action_type");
}
if (str4 != null) {
data.remove("custom_action_type");
data.remove("action");
data.remove("action_type");
d.c(a.a).getClass();
a aVar = d.h;
e0.getClass();
aVar.getClass();
b a2 = b.a();
HashMap hashMap = new HashMap();
hashMap.put("push_type", "notification");
hashMap.put("action_type", str4);
a2.b("push_custom_receive", hashMap);
b.a().b("push_receive_skip", b.a.b(str4));
}
} else {
e.b.d("PushManager is not initialized and skip this handlePushNotification, please check the PushManger.init() config", null);
}
}
hVar.c("handlePushNotification failure");
}
public final void e(@NonNull String str) {
j.c("==> onNewToken");
kk.b.a.k(this, "firebase_token", str);
}
}