无法收到推送消息,一直在重新连接

android
标签: #<Tag:0x00007fca6e2b5e68>

(Lvzp) #1
01-24 10:50:32.290 13651-13651/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [PushReceiver] onReceive - android.intent.action.USER_PRESENT
01-24 10:50:32.291 13651-13674/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JPush: [PushReceiverCore] onReceive - android.intent.action.USER_PRESENT
01-24 10:50:32.314 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:13651
01-24 10:50:32.331 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] isRunning:false
01-24 10:50:32.331 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
01-24 10:50:32.335 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:461
01-24 10:50:32.356 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [SisPolicy] To get sis - host:117.121.49.100, port:19000 ,type:hardcode_domain
01-24 10:50:32.371 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
01-24 10:50:32.547 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [SisPolicy] Get sis info succeed with host: 117.121.49.100 type:hardcode_domain
01-24 10:50:32.581 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [SisPolicy] Open connection with main - ip:121.46.20.45, port:7005
01-24 10:50:32.774 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [SisPolicy] Succeed to open connection - ip:121.46.20.45, port:7005
01-24 10:50:32.932 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Register succeed - juid:16919898443, registrationId:170976fa8aad7fe8550, deviceId:null
01-24 10:50:32.988 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:0, appKey:be585da1f055d830b6b15eb8, sdkVersion:66053, pushVersion:196870, analyticsVersion:0 ,shareVersion:0,sspSdkVer:0, pluginPlatformType:0
01-24 10:50:33.072 13651-14486/com.pansoft.pansmartposclient:pushcore W/JIGUANG-JCore: [ConnectingHelper] Login failed with server error - code:108 - Incorrect uid
01-24 10:50:33.076 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] onLoginFailed - connection:461, respCode:0
01-24 10:50:34.058 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Register succeed - juid:16919898443, registrationId:170976fa8aad7fe8550, deviceId:null
01-24 10:50:34.120 13651-14486/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:0, appKey:be585da1f055d830b6b15eb8, sdkVersion:66053, pushVersion:196870, analyticsVersion:0 ,shareVersion:0,sspSdkVer:0, pluginPlatformType:0
01-24 10:50:34.214 13651-14486/com.pansoft.pansmartposclient:pushcore W/JIGUANG-JCore: [ConnectingHelper] Login failed with server error - code:108 - Incorrect uid
01-24 10:50:34.214 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] onLoginFailed - connection:461, respCode:0
01-24 10:50:34.343 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] login error,retry login too many times
01-24 10:50:34.344 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:461
01-24 10:50:34.345 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
01-24 10:50:34.347 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
01-24 10:50:34.348 13651-14486/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] prepare Push Channel failed , returned
01-24 10:50:34.351 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:17
01-24 10:52:28.146 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:13651
01-24 10:52:28.151 13651-13824/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ReportHelper] periodTasks...
01-24 10:52:28.153 13626-13626/com.pansoft.pansmartposclient D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-24 10:52:28.153 13626-13645/com.pansoft.pansmartposclient D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-24 10:52:28.154 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] isRunning:false
01-24 10:52:28.154 13651-13700/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
01-24 10:52:28.163 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:463
01-24 10:52:28.178 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [SisPolicy] To get sis - host:117.121.49.100, port:19000 ,type:hardcode_domain
01-24 10:52:28.194 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
01-24 10:52:28.251 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [SisPolicy] Get sis info succeed with host: 117.121.49.100 type:hardcode_domain
01-24 10:52:28.282 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [SisPolicy] Open connection with main - ip:43.247.88.82, port:7003
01-24 10:52:28.365 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [SisPolicy] Succeed to open connection - ip:43.247.88.82, port:7003
01-24 10:52:29.457 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Register succeed - juid:16919898443, registrationId:170976fa8aad7fe8550, deviceId:null
01-24 10:52:29.516 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:0, appKey:be585da1f055d830b6b15eb8, sdkVersion:66053, pushVersion:196870, analyticsVersion:0 ,shareVersion:0,sspSdkVer:0, pluginPlatformType:0
01-24 10:52:29.595 13651-14667/com.pansoft.pansmartposclient:pushcore W/JIGUANG-JCore: [ConnectingHelper] Login failed with server error - code:108 - Incorrect uid
01-24 10:52:29.595 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] onLoginFailed - connection:463, respCode:0
01-24 10:52:30.685 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Register succeed - juid:16919898443, registrationId:170976fa8aad7fe8550, deviceId:null
01-24 10:52:30.754 13651-14667/com.pansoft.pansmartposclient:pushcore I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:0, appKey:be585da1f055d830b6b15eb8, sdkVersion:66053, pushVersion:196870, analyticsVersion:0 ,shareVersion:0,sspSdkVer:0, pluginPlatformType:0
01-24 10:52:30.817 13651-14667/com.pansoft.pansmartposclient:pushcore W/JIGUANG-JCore: [ConnectingHelper] Login failed with server error - code:108 - Incorrect uid
01-24 10:52:30.817 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] onLoginFailed - connection:463, respCode:0
01-24 10:52:30.960 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] login error,retry login too many times
01-24 10:52:30.960 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - closeConnection - connection:463
01-24 10:52:30.961 13651-14667/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] prepare Push Channel failed , returned
01-24 10:52:30.961 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - onDisconnected - connection:0
01-24 10:52:30.964 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [NetworkingClient] Action - tryStop - connection:0
01-24 10:52:30.966 13651-13697/com.pansoft.pansmartposclient:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - retryConnect - disconnectedTimes:18

#2

你的 SDK 版本多少?


(Lvzp) #3

image这是设备的安卓版本,我的编译版本是image


#4

极光 SDK 的版本


(Lvzp) #5

image


#6

更新到最新版本,并做这样的处理:
https://docs.jiguang.cn/jpush/updates/#jpush-android-sdk-v318

配置AndroidManifest里的DataProvider的进程与PushService的一致(PushSevice没有配多进程的则不用动),可以避免类似情况发生

<provider
            android:name="cn.jpush.android.service.DataProvider"
            android:authorities="${applicationId}.DataProvider"
            android:process=":mult"
            android:exported="true" />

 <service
            android:name="cn.jpush.android.service.PushService"
            android:process=":mult">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.REGISTER" />
                <action android:name="cn.jpush.android.intent.REPORT" />
                <action android:name="cn.jpush.android.intent.PushService" />
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
            </intent-filter>
        </service>

(Lvzp) #7

刚刚试了下,没有问题了,这个是因为使用的jcenter 自动集成的,然后因为测试的时候需要一台设备上安装多个版本,所以把provider属性中的android:authorities重新配置了下。是不是因为原有配置中的两个provider和service必须是同一个进程才可以。