魅族MX5,小米5不能显示通知

android
标签: #<Tag:0x00007fb832e50258>

(Jackking) #12

我再看看,还有同事的小米5也收不到,奇怪了


#13
  • -我这边也找测试的同事测试看看吧,你那边再找找是不是手机设置的原因。

(Jackking) #14

好的,可能跟什么设置有关系


#15

你这边看看设置有没有问题,重启后再测试看看。

如果还是不行,就把日志完整的提供给我看看,从init开始的


(Jackking) #16

好的,日志不知道怎么提供给你们


#17

(Jackking) #18
02/14 14:30:58: Launching JPushExample
$ adb push E:\AndroidProjectTest\MyApplication\JPushExample\build\outputs\apk\JPushExample-debug.apk /data/local/tmp/com.example.administrator.myapplication
$ adb shell pm install -r "/data/local/tmp/com.example.administrator.myapplication"
	pkg: /data/local/tmp/com.example.administrator.myapplication
Success


$ adb shell am start -n "com.example.administrator.myapplication/com.example.jpushdemo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.example.administrator.myapplication.test | com.example.administrator.myapplication
Connecting to com.example.administrator.myapplication
W/ActivityThread: Application com.example.administrator.myapplication is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8610', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1313)
I/InstantRun: Instant Run Runtime started. Android package is com.example.administrator.myapplication, real application class is com.example.jpushdemo.ExampleApplication.
W/linker: /system/lib64/libfilterUtils.so: unused DT entry: type 0x6ffffffe arg 0x808
W/linker: /system/lib64/libfilterUtils.so: unused DT entry: type 0x6fffffff arg 0x2
W/linker: /data/app/com.example.administrator.myapplication-2/lib/arm64/libjcore110.so: unused DT entry: type 0x6ffffffe arg 0x2ba0
W/linker: /data/app/com.example.administrator.myapplication-2/lib/arm64/libjcore110.so: unused DT entry: type 0x6fffffff arg 0x2
W/Resources: Converting to string: TypedValue{t=0x1/d=0x1030249 a=1 r=0x1030249}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=1 r=0x102037a}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=1 r=0x102037b}
W/Resources: Converting to string: TypedValue{t=0x1c/d=0xff212121 a=1 r=0x10600cf}
W/Resources: Converting to string: TypedValue{t=0x5/d=0x401 a=1 r=0x10500d6}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=1 r=0x102037c}
W/Resources: Converting to string: TypedValue{t=0x5/d=0x3801 a=1 r=0x10500cc}
W/Resources: Converting to string: TypedValue{t=0x5/d=0x1 a=1 r=0x10500d3}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=1 r=0x102037d}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f06000f}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060010}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060011}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060012}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060013}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060014}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060015}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060016}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060017}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060018}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f060019}
W/Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=4 r=0x7f06001a}
E/MPlugin: Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
D/libc-netbsd: getaddrinfo: stats.jpush.cn get result from proxy >>
I/System.out: propertyValue:true
I/System.out: [CDS]connect[stats.jpush.cn/183.232.42.230:443] tm:30
W/Resources: Converting to string: TypedValue{t=0x5/d=0x2401 a=1 r=0x10500d7}
W/Resources: Converting to string: TypedValue{t=0x5/d=0x3001 a=1 r=0x10500d9}
W/Resources: Converting to string: TypedValue{t=0x5/d=0x601 a=1 r=0x10500d4}
W/Resources: Converting to string: TypedValue{t=0x5/d=0xa01 a=1 r=0x10500d5}
E/GED: Failed to get GED Log Buf, err(0)
I/OpenGLRenderer: Initialized EGL, version 1.4
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
I/OpenGLRenderer: Initializing program atlas...
I/OpenGLRenderer: Program binary detail: Binary length is 240486, program map length is 112.
I/OpenGLRenderer: Succeeded to mmap program binaries. File descriptor is 88, and path is /dev/ashmem�.
I/OpenGLRenderer: No need to use file discriptor anymore, close fd(88).
E/NativeCrypto: ssl=0x7f8e48bf80 cert_verify_callback x509_store_ctx=0x7f795391e8 arg=0x0
E/NativeCrypto: ssl=0x7f8e48bf80 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
I/System.out: [CDS]close[52413]
I/NetworkManagementSocketTagger: untagSocket(62)
W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Mon Jul 27 08:00:00 GMT+08:00 2015 (compared to Fri Jan 08 09:15:21 GMT+08:00 2010)
I/System.out: [CDS]connect[stats.jpush.cn/183.232.42.230:443] tm:30
E/NativeCrypto: ssl=0x7f8e48ca00 cert_verify_callback x509_store_ctx=0x7f79539328 arg=0x0
E/NativeCrypto: ssl=0x7f8e48ca00 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
I/System.out: [CDS]close[37138]
I/NetworkManagementSocketTagger: untagSocket(121)
W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 09:15:22 GMT+08:00 2010)
I/System.out: [CDS]connect[stats.jpush.cn/183.232.42.230:443] tm:30
E/NativeCrypto: ssl=0x7f8e48d480 cert_verify_callback x509_store_ctx=0x7f79539a08 arg=0x0
E/NativeCrypto: ssl=0x7f8e48d480 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
I/System.out: [CDS]close[35117]
I/NetworkManagementSocketTagger: untagSocket(172)
W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 09:15:22 GMT+08:00 2010)
I/System.out: [CDS]connect[stats.jpush.cn/183.232.42.230:443] tm:30
E/NativeCrypto: ssl=0x7f8e48e600 cert_verify_callback x509_store_ctx=0x7f79539698 arg=0x0
E/NativeCrypto: ssl=0x7f8e48e600 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
I/System.out: [CDS]close[39391]
I/NetworkManagementSocketTagger: untagSocket(51)
W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 09:15:22 GMT+08:00 2010)

#19

你这样,推送一条通知,然后小米或者魅族收到了消息(日志里面有了)但是没有通知栏的那个情况下的日志给我,从init开始到你收到了消息的日志。
用jiguang筛选一下


(Jackking) #20
01-08 09:35:09.544 19100-19166/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Mon Jul 27 08:00:00 GMT+08:00 2015 (compared to Fri Jan 08 09:35:09 GMT+08:00 2010)
01-08 09:35:09.662 19100-19166/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 09:35:09 GMT+08:00 2010)

(Jackking) #21
else if (JPushInterface.ACTION_NOTIFICATION_RECEIVED.equals(intent.getAction())) {
            Log.d(TAG, "[MyReceiver] 接收到推送下来的通知");
            int notifactionId = bundle.getInt(JPushInterface.EXTRA_NOTIFICATION_ID);
            Log.d(TAG, "[MyReceiver] 接收到推送下来的通知的ID: " + notifactionId);
        	
        } 

debug走了这段代码,其他log没有啊


#22

嗯?log里面没有显示出 收到消息的具体的内容?

你把你设备的registrationID和你测试推送的msgid给我


#23

你那边有打开日志吧?
调用开启jpush日志的接口( JPushInterface.setDebugMode(true);

你再推送一次,然后看看客户端日志呢?


(Jackking) #24

打开了,刚刚在忙,等下发registrationID


#25

嗯,你这边再测试一下,推送一下,然后把你说的 log有,但是通知栏没有的日志完整的贴一遍。


(Jackking) #26

好的,我这边在看,刚测了一个红米手机可以,等下,我截下日志发下


(Jackking) #27
01-08 10:43:39.955 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:43:39 GMT+08:00 2010)
01-08 10:43:40.159 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:43:40 GMT+08:00 2010)
01-08 10:45:12.711 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:45:12 GMT+08:00 2010)
01-08 10:45:12.853 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:45:12 GMT+08:00 2010)
01-08 10:45:14.798 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:45:14 GMT+08:00 2010)
01-08 10:45:14.921 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:45:14 GMT+08:00 2010)
01-08 10:46:13.012 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:46:13 GMT+08:00 2010)
01-08 10:46:13.117 20527-19626/com.example.administrator.myapplication W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:46:13 GMT+08:00 2010)

只有这段日志了,没有其他日志


(Jackking) #28
01-08 10:51:17.291 1130-1333/com.wiwj.it.app.building W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Mon Jul 27 08:00:00 GMT+08:00 2015 (compared to Fri Jan 08 10:51:17 GMT+08:00 2010)
01-08 10:51:17.507 1130-1333/com.wiwj.it.app.building W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:51:17 GMT+08:00 2010)
01-08 10:51:17.742 1130-1333/com.wiwj.it.app.building W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:51:17 GMT+08:00 2010)
01-08 10:51:17.944 1130-1333/com.wiwj.it.app.building W/JIGUANG-JCore: [HttpUtils] http post IOException error:com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: Certificate not valid until Wed Nov 06 05:36:50 GMT+08:00 2013 (compared to Fri Jan 08 10:51:17 GMT+08:00 2010)

#29

你网上搜一下这个报错,貌似是什么证书时间问题
http://www.cnblogs.com/wanqieddy/p/4864730.html


(Jackking) #30

刚看了魅族手机的时间是好几年前的,2010年,不知道跟这个有关系不,我调试看看


(Jackking) #31

这个魅族还是收不到消息,华为手机运行官方Demo就行,MX5的Flyme版本是6.0.1a,暂时看不到原因