首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Android TPNS 在鸿蒙系统上, 应用返回桌面,无法收到通知?

Android TPNS 在鸿蒙系统上, 应用返回桌面,无法收到通知?

提问于 2022-02-24 14:34:46
回答 1关注 0查看 476

进程还在, 应用返回桌面, 无法收到通知信息, 复现设备鸿蒙 安卓编译版本30, 再次打开后才能收到, 或者插上数据线抓log时候也能收到

报错log

2022-02-24 11:23:54.241 16066-16279/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] connectionLost, cause: (32109) - java.net.SocketException: Software caused connection abort retryCount:0

2022-02-24 11:23:54.264 16066-16279/? E/TPush: [Base-TPush - ProviderMessage] myQuery

java.lang.InterruptedException

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java:442)

at java.lang.Thread.join(Thread.java:1440)

at com.tencent.tpns.baseapi.crosssp.ProviderMessage$a.a(ProGuard:283)

at com.tencent.tpns.baseapi.crosssp.ProviderMessage.query(ProGuard:124)

at com.tencent.tpns.baseapi.crosssp.a.a(ProGuard:137)

at com.tencent.tpns.baseapi.base.PushPreferences.getInt(ProGuard:83)

at com.tencent.tpns.baseapi.base.util.CloudManager.a(ProGuard:537)

at com.tencent.tpns.baseapi.base.util.CloudManager.getRecons(ProGuard:197)

at com.tencent.tpns.mqttchannel.core.b.a.l(ProGuard:1163)

at com.tencent.tpns.mqttchannel.core.b.a.connectionLost(ProGuard:1156)

at com.tencent.android.tpns.mqtt.internal.CommsCallback.connectionLost(CommsCallback.java:296)

at com.tencent.android.tpns.mqtt.internal.ClientComms.shutdownConnection(ClientComms.java:439)

at com.tencent.android.tpns.mqtt.internal.CommsReceiver.TRun(CommsReceiver.java:188)

at com.tencent.tpns.baseapi.base.util.TTask.run(ProGuard:37)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

at java.lang.Thread.run(Thread.java:929)

2022-02-24 11:23:54.266 16066-16212/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] doConnectionLost bind mqttAsyncClientService not success

2022-02-24 11:23:54.284 16066-16279/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] tryReConnect -> retryCount:1, subRetryCount:0, delay:2000

2022-02-24 11:23:54.284 16066-16212/? I/TPush: [XGVipPushService] onConnectionLost

02-24 11:31:08.245 15991-16061/? I/TPush: [XgStat] [XgStat(44145): ProGuard:311] - http data upload ok

2022-02-24 11:31:08.245 15991-16061/? I/TPush: [XgStat] [XgStat(44145): ProGuard:313] - send Event success:[{"accessId":1500028459,"pushAction":64,"msgId":566003075,"msgType":1,"pushtime":1645673012,"timestamp":1645673467,"templateId":"","traceId":"","token":"**********","accessKey":"********","appVersion":"1.0","sdkVersion":"1.3.2.1","groupId":"00:424025","pushChannel":100,"targetType":2,"source":1}]

2022-02-24 11:31:12.627 16066-16066/? D/TPush: [PushServiceBroadcastHandler] --UserPresentReceiver--

2022-02-24 11:31:14.629 16066-16212/? D/TPush: [PushServiceBroadcastHandler] --start Connect UserPresentReceiver--

2022-02-24 11:31:14.630 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] action - startConnect, start MqttService

2022-02-24 11:31:14.634 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] action - doConnect, actionName:startConnect

2022-02-24 11:31:14.649 15991-16839/? I/TPush: [XGPushProvider] getType uri:content://com.xile.XGVIP_PUSH_AUTH/heart,match:30

2022-02-24 11:31:14.666 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] actionName:startConnect bind MqttService:true

2022-02-24 11:31:14.666 16066-16066/? D/TPush: [Mqtt-TPush - MqttChannelImpl] doConnect - onServiceConnected

2022-02-24 11:31:14.667 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] doConnect action on startConnect

2022-02-24 11:31:14.668 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] action - startConnect

2022-02-24 11:31:14.668 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] Action:restartConnectThread

2022-02-24 11:31:14.669 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] Action:restartConnectThread - CONNECTED

2022-02-24 11:32:21.717 16066-16066/? D/TPush: [PushServiceBroadcastHandler] --UserPresentReceiver--

2022-02-24 11:32:21.717 16066-16761/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] connectionLost, cause: (32109) - java.net.SocketException: Software caused connection abort retryCount:0

2022-02-24 11:32:21.724 16066-16212/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] doConnectionLost bind mqttAsyncClientService not success

2022-02-24 11:32:21.735 16066-16212/? I/TPush: [XGVipPushService] onConnectionLost

2022-02-24 11:32:21.737 16066-16761/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] tryReConnect -> retryCount:1, subRetryCount:0, delay:2000

2022-02-24 11:32:23.719 16066-16212/? D/TPush: [PushServiceBroadcastHandler] --start Connect UserPresentReceiver--

2022-02-24 11:32:23.720 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] action - startConnect, start MqttService

2022-02-24 11:32:23.723 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] action - doConnect, actionName:startConnect

2022-02-24 11:32:23.733 15991-16839/? I/TPush: [XGPushProvider] getType uri:content://com.xile.XGVIP_PUSH_AUTH/heart,match:30

2022-02-24 11:32:23.735 16066-16066/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] handler cmd: 1

2022-02-24 11:32:23.741 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] actionName:startConnect bind MqttService:true

2022-02-24 11:32:23.742 16066-16066/? D/TPush: [Mqtt-TPush - MqttChannelImpl] doConnect - onServiceConnected

2022-02-24 11:32:23.742 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] Action:restartConnectThread

2022-02-24 11:32:23.742 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] Action:restartConnectThread is not isAlive

2022-02-24 11:32:23.743 16066-16212/? D/TPush: [Mqtt-TPush - MqttChannelImpl] doConnect action on startConnect

2022-02-24 11:32:23.743 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] doMqttConnect -> try connect, state: DISCONNECTED

2022-02-24 11:32:23.743 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] action - startConnect

2022-02-24 11:32:23.744 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] Action:restartConnectThread

2022-02-24 11:32:23.744 16066-16212/? D/TPush: [Mqtt-TPush - IMqttServiceImpl] The Thread is isAlive and isRuning false mqtt status STOPED just waiting for connecting

2022-02-24 11:32:23.745 16066-17348/? D/TPush: [Base-TPush - GuidInfoManagerImpl] getFinalMqttServerAddrAndGuidInfo

2022-02-24 11:32:23.767 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] GuidInfo gapSeconds = 1585, compare to 21600

2022-02-24 11:32:23.772 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] GuidInfo not expired. Check mqttServe

2022-02-24 11:32:23.773 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] Get mqttServerIP: tcp://access1.tpns.tencent.com:1883

2022-02-24 11:32:23.773 16066-17348/? D/TPush: [Base-TPush - GuidInfoManagerImpl] Check MqttServer expired?

2022-02-24 11:32:23.774 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] Get mqttServerLastRefreshTime: 1645671958213

2022-02-24 11:32:23.774 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] MqttServerAddr gapSeconds = 1585, 1800

2022-02-24 11:32:23.774 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] MqttServer not expired.

2022-02-24 11:32:23.835 16066-17348/? I/TPush: [Base-TPush - GuidInfoManagerImpl] Guid status: com.tencent.tpns.baseapi.base.device.GUIDInfo@c44da0b

2022-02-24 11:32:23.835 16066-17348/? D/TPush: [CloudManager] shouldRefuse | isCloudRefuse : false

2022-02-24 11:32:23.836 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] Mqtt cloudRefuse: false

2022-02-24 11:32:23.836 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] update encryptLevel: 0, compressLevel: 2

2022-02-24 11:32:23.837 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] Finally get finalMqttServerAddr = tcp://access1.tpns.tencent.com:1883

2022-02-24 11:32:23.842 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] doMqttConnect -> connecting host: tcp://access1.tpns.tencent.com:1883, state: CONNECTING

2022-02-24 11:32:23.842 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] Mqtt clientId: 0578b56c87c8837bd6c47c6936d964879aef

2022-02-24 11:32:23.843 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] stopConnect

2022-02-24 11:32:23.844 16066-17348/? W/TPush: [Mqtt-TPush - IMqttServiceImpl] stopConnect error MqttException

2022-02-24 11:32:23.844 16066-17348/? I/TPush: [Mqtt-TPush - IMqttServiceImpl] destroyMqttClient

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档