导航菜单

页面标题

页面副标题

Pulsar v1.0.0 - JPushReceiver.java 源代码

正在查看: Pulsar v1.0.0 应用的 JPushReceiver.java JAVA 源代码文件

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


package com.xly.module.jpush;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.xly.module.push.MTPushModule;
import com.xly.module.push.f;
import d2.g;
import d2.h;
import d2.i;

public class JPushReceiver extends o1.a {
    public static final String b = "JPushReceiver";
    public static g c;
    public static w6.b d;

    public void onAliasMessage(Context context, d2.a aVar) {
        if (aVar == null || TextUtils.isEmpty(aVar.getAlias())) {
            return;
        }
        u6.c.getInstance(context).setJpushAlias(aVar.getAlias());
    }

    public void onConnectStatus(Context context, boolean z) {
        Log.d(b, "onConnectState:" + z);
        Log.d(b, "onConnectStatus,registrationId:" + x1.b.getRegistrationId(context));
        WritableMap createMap = Arguments.createMap();
        createMap.putBoolean(v6.a.a, z);
        com.xly.module.push.c.sendEvent(v6.a.o, createMap);
        MTPushModule.onLongConnectSuccess.OnLongConnectSuc();
    }

    public void onCustomMessage(Context context, d2.b bVar) {
    }

    public void onInAppMessageClick(Context context, d2.c cVar) {
    }

    public void onInAppMessageShow(Context context, d2.c cVar) {
    }

    public void onMobileNumber(Context context, d2.e eVar) {
    }

    public void onNotificationArrived(Context context, g gVar) {
        timber.log.c.tag(b).d("onNotificationArrived:" + gVar.toString(), new Object[0]);
        com.xly.module.push.c.sendEvent(v6.a.p, f.a.convertJpushNotificationToMap(v6.a.g, gVar));
    }

    public void onNotificationClicked(Context context, g gVar) {
        if (MTPushModule.reactContext == null) {
            super.onNotificationClicked(context, gVar);
        }
        f.a.deliverClickJpush(context, gVar);
    }

    public void onNotificationDeleted(Context context, g gVar) {
        timber.log.c.tag(b).d("onNotificationDeleted:" + gVar.toString(), new Object[0]);
        com.xly.module.push.c.sendEvent(v6.a.p, f.a.convertJpushNotificationToMap(v6.a.i, gVar));
    }

    public void onNotificationStatus(Context context, boolean z) {
        Log.d(b, "onNotificationStatus, registrationId:" + x1.b.getRegistrationId(context));
    }

    public void onNotificationUnShow(Context context, g gVar) {
        timber.log.c.tag(b).d("onNotificationUnShow:" + gVar.toString(), new Object[0]);
    }

    public void onPlatformToken(Context context, h hVar) {
        timber.log.c.tag(b).d("onNotificationUnShow:" + hVar.toString(), new Object[0]);
        WritableMap createMap = Arguments.createMap();
        createMap.putInt(v6.a.k, hVar.getPlatform());
        createMap.putString(v6.a.l, hVar.getToken());
        com.xly.module.push.c.sendEvent(v6.a.q, createMap);
    }

    public void onTagMessage(Context context, i iVar) {
    }

    public void onWake(Context context, x1.f fVar) {
        timber.log.c.tag(b).d("onWake:" + fVar.toString(), new Object[0]);
    }
}