正在查看: Housing v14.7.8 应用的 MoEFireBaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 MoEFireBaseMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moengage.firebase;
import android.content.Context;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.google.firebase.messaging.TokenRegistrationHandler;
import com.moengage.core.internal.logger.Logger;
import com.moengage.pushbase.MoEPushHelper;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0016¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\u000b\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0016¢\u0006\u0004\b\u000b\u0010\fR\u0014\u0010\r\u001a\u00020\t8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\r\u0010\u000e¨\u0006\u000f"}, d2 = {"Lcom/moengage/firebase/MoEFireBaseMessagingService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "<init>", "()V", "Lcom/google/firebase/messaging/RemoteMessage;", "remoteMessage", "Lzp/j0;", "onMessageReceived", "(Lcom/google/firebase/messaging/RemoteMessage;)V", "", "token", "onNewToken", "(Ljava/lang/String;)V", "tag", "Ljava/lang/String;", "moe-push-firebase_defaultRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class MoEFireBaseMessagingService extends FirebaseMessagingService {
@NotNull
private final String tag = "FCM_7.2.0_MoEFireBaseMessagingService";
public void onMessageReceived(@NotNull RemoteMessage remoteMessage) {
r.k(remoteMessage, "remoteMessage");
try {
Map<String, String> data = remoteMessage.getData();
r.j(data, "getData(...)");
if (!MoEPushHelper.INSTANCE.getInstance().isFromMoEngagePlatform(data)) {
Logger.Companion.print$default(Logger.INSTANCE, 0, null, null, new MoEFireBaseMessagingService$onMessageReceived$2(this), 7, null);
com.google.firebase.messaging.RemoteMessage.notifyNonMoEngagePush(remoteMessage);
return;
}
Logger.Companion.print$default(Logger.INSTANCE, 0, null, null, new MoEFireBaseMessagingService$onMessageReceived$1(this), 7, null);
MoEFireBaseHelper companion = MoEFireBaseHelper.INSTANCE.getInstance();
Context applicationContext = getApplicationContext();
r.j(applicationContext, "getApplicationContext(...)");
companion.passPushPayload(applicationContext, data);
} catch (Exception e) {
Logger.Companion.print$default(Logger.INSTANCE, 1, e, null, new MoEFireBaseMessagingService$onMessageReceived$3(this), 4, null);
}
}
public void onNewToken(@NotNull String token) {
r.k(token, "token");
try {
Logger.Companion.print$default(Logger.INSTANCE, 0, null, null, new MoEFireBaseMessagingService$onNewToken$1(this, token), 7, null);
TokenRegistrationHandler tokenRegistrationHandler = TokenRegistrationHandler.INSTANCE;
Context applicationContext = getApplicationContext();
r.j(applicationContext, "getApplicationContext(...)");
tokenRegistrationHandler.processPushToken(applicationContext, token);
} catch (Exception e) {
Logger.Companion.print$default(Logger.INSTANCE, 1, e, null, new MoEFireBaseMessagingService$onNewToken$2(this), 4, null);
}
}
}