Comments (7)
什么手机,android版本是多少?是偶现还是必现?你是点击如下按钮出现的奔溃吗?还是启动就报错了?
或者
from cactus.
说下为什么会出现这个问题的原因,因为android 8.0之后隐藏通知栏,使用的是deleteNotificationChannel方法隐藏,当app奔溃时候,cactus会进行拉活,但是发现不存在这个相应的渠道信息,所以就报错了。但是cactus会继续拉活,再一次拉活就不会出现这个问题了。除非你使用hideNotificationAfterO(false)方法不隐藏android 8.0之后的通知栏,或者保证你们的app永远不会奔溃(理论上不可能)。PS:我也在寻找其他方法解决此问题,目前还没有找到
from cactus.
感谢大佬的解答!
from cactus.
碰到同样问题,如果目前找不到方案解决可以先try_catch了,每个app都有崩溃率的kpi。所以还是要慎重
from cactus.
碰到同样问题,如果目前找不到方案解决可以先try_catch了,每个app都有崩溃率的kpi。所以还是要慎重
RemoteServiceException是系统级别的异常,try_catch无法捕获,如果不介意还是把android8.0之后的通知显示出来吧hideNotificationAfterO(false)
from cactus.
设置hideNotificationAfterO(true) 之后,出现的概率还是很大了,间隔一段时间 就会出现奔溃
from cactus.
设置hideNotificationAfterO(true) 之后,出现的概率还是很大了,间隔一段时间 就会出现奔溃
同样的问题,目前有好的解决方案不?
from cactus.
Related Issues (20)
- android 10 能搞吗?
- ANR
- 小米手机无法做到保活
- 有些手机通知栏需要权限,影不影响这个库? HOT 1
- Caused by: java.lang.RuntimeException HOT 1
- 无声音乐播放问题 HOT 2
- 服务问题 HOT 9
- CacutsException
- 如果我app主动杀掉进程 可以监听到嘛 就是说 服务断掉??
- bug: vivo 8.1版本手机上会出现unregisterReceiver()的问题
- android.app.RemoteServiceException: Bad notification for startForeground HOT 1
- android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()
- 大佬有方法解决一下这个carsh吗?8.1.0奔溃了100% HOT 1
- 后台能杀死 HOT 1
- Not allowed to delete channel with a foreground service HOT 6
- 魔法保活失效
- App开启自启动后,前台服务会自启
- 导致ANR有人帮忙看一下吗
- 通知栏问题
- implementation 'com.gyf.cactus:cactus:1.1.3-beta13' 失败,有漏洞下载失败?? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cactus.