导航菜单

页面标题

页面副标题

Cashalo v2.25.0.0 - MessagingService.java 源代码

正在查看: Cashalo v2.25.0.0 应用的 MessagingService.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.oriente.notify.service;

import com.fullstory.FS;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.oriente.notify.NotificationHelper;
import com.oriente.notify.model.NotificationDataNew;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0010\u0010\u0007\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\tH\u0016J\u0012\u0010\n\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\tH\u0002J\u0012\u0010\u000b\u001a\u00020\u00042\b\u0010\b\u001a\u0004\u0018\u00010\tH\u0002¨\u0006\f"}, d2 = {"Lcom/oriente/notify/service/MessagingService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "()V", "onMessageReceived", "", "remoteMessage", "Lcom/google/firebase/messaging/RemoteMessage;", "onNewToken", "token", "", "saveToken", "updateToken", "com.oriente.android.notification-sdk"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class MessagingService extends FirebaseMessagingService {
    public void onNewToken(String token) {
        Intrinsics.checkNotNullParameter(token, "token");
        super.onNewToken(token);
        FS.log_i(MessagingServiceKt.MESSAGE, Intrinsics.stringPlus("onNewToken  ", token));
        updateToken(token);
        saveToken(token);
    }

    public void onMessageReceived(RemoteMessage remoteMessage) {
        Intrinsics.checkNotNullParameter(remoteMessage, "remoteMessage");
        super.onMessageReceived(remoteMessage);
        FS.log_i(MessagingServiceKt.MESSAGE, "receiveMessage begin");
        NotificationDataNew parseNotificationMessage = NotificationHelper.INSTANCE.parseNotificationMessage(remoteMessage.getData());
        Map data = remoteMessage.getData();
        Intrinsics.checkNotNullExpressionValue(data, "it.data");
        FS.log_i(MessagingServiceKt.MESSAGE, Intrinsics.stringPlus("receiveMessage ing", data));
        NotificationHelper.INSTANCE.sendNotification$com_oriente_android_notification_sdk(parseNotificationMessage);
    }

    private final void updateToken(String token) {
        FS.log_i(MessagingServiceKt.MESSAGE, Intrinsics.stringPlus("updateToken  ", token));
        NotificationHelper.INSTANCE.updateToken(token);
    }

    private final void saveToken(String token) {
        FS.log_i(MessagingServiceKt.MESSAGE, Intrinsics.stringPlus("saveToken  ", token));
        NotificationHelper.INSTANCE.saveToken(token);
    }
}