原因是 8.0 收紧了后台服务,这个你们啥时候修复?
java.lang.IllegalStateException: Not allowed to start service Intent { flg=0x10000000 cmp=im.tower.plus.android/com.avos.avoscloud.PushService }: app is in background uid UidRecord{7dfd32 u0a137 SVC bg:+1m0s42ms idle procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1505)
at android.app.ContextImpl.startService(ContextImpl.java:1461)
at android.content.ContextWrapper.startService(ContextWrapper.java:644)
at com.avos.avoscloud.PushService.onDestroy(PushService.java:225)
类似问题:https://github.com/intercom/intercom-android/issues/373
https://developer.android.google.cn/about/versions/o/background.html