| | |
| | | package com.hdl.photovoltaic.jpush; |
| | | |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.os.Bundle; |
| | | import android.text.TextUtils; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonObject; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.hdl.photovoltaic.config.ConstantManage; |
| | | import com.hdl.photovoltaic.other.HdlJpushLogic; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.ui.MyPowerStationActivity; |
| | | import com.hdl.photovoltaic.ui.StartActivity; |
| | | import com.hdl.photovoltaic.ui.bean.BUserInfo; |
| | | import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus; |
| | | |
| | | import org.greenrobot.eventbus.EventBus; |
| | | |
| | | import java.lang.reflect.Type; |
| | | import java.util.HashMap; |
| | | import java.util.Objects; |
| | | |
| | | import cn.jpush.android.api.CustomMessage; |
| | | import cn.jpush.android.api.JPushInterface; |
| | | import cn.jpush.android.api.NotificationMessage; |
| | | import cn.jpush.android.service.JPushMessageService; |
| | | |
| | |
| | | */ |
| | | public void onMessage(Context context, CustomMessage customMessage) { |
| | | |
| | | HdlLogLogic.print("极光--->自定义消息回调--->" + new Gson().toJson(customMessage), false); |
| | | HdlLogLogic.print("极光---自定义消息回调---" + new Gson().toJson(customMessage), false); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param registrationId 注册 id |
| | | */ |
| | | public void onRegister(Context context, String registrationId) { |
| | | HdlLogLogic.print("极光--->注册成功回调Id:" + registrationId, false); |
| | | HdlLogLogic.print("极光---注册成功回调Id:" + registrationId, false); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param isConnected 长连接状态 |
| | | */ |
| | | public void onConnected(Context context, boolean isConnected) { |
| | | HdlLogLogic.print("极光--->长连接状态回调:" + isConnected, false); |
| | | HdlLogLogic.print("极光---长连接状态回调:" + isConnected, false); |
| | | } |
| | | |
| | | /** |