Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务问题 #50

Open
pz-bottle opened this issue Feb 1, 2021 · 9 comments
Open

服务问题 #50

pz-bottle opened this issue Feb 1, 2021 · 9 comments

Comments

@pz-bottle
Copy link

android.app.RemoteServiceException
Context.startForegroundService() did not then call Service.startForeground() 大佬这个carsh问题太多了,可否针对性做一下优化?

@pz-bottle
Copy link
Author

android10特别多,太难了

@gyf-dev
Copy link
Owner

gyf-dev commented Feb 3, 2021

显示通知栏,调用hideNotificationAfterO设置为false,然后卸载app重新安装

@pz-bottle
Copy link
Author

hideNotificationAfterO这个属性框架不是默认为false的吗?

@gyf-dev
Copy link
Owner

gyf-dev commented Feb 3, 2021

那你通知栏有显示通知吗?

@pz-bottle
Copy link
Author

刚刚看了代码原来hideNotificationAfterO这个属性默认为true,不过过我这边做了挂后台显示通知栏的功能,但是我没有使用service去显示通知栏

@pz-bottle
Copy link
Author

Cactus.getInstance()
.setBackgroundMusicEnabled(true)
.register(this); 在项目里我一开始是这样使用的,没有加hideNotificationAfterO(false)这个

@gyf-dev
Copy link
Owner

gyf-dev commented Feb 3, 2021

就是隐藏8.0通知栏导致的,要显示出来

@pz-bottle
Copy link
Author

嗯嗯,好吧,那我先试试

@pz-bottle
Copy link
Author

不过我之前就是使用service发送一个Notification来保活的,发现一堆这样的carsh,所以我才找了大佬你的这个无声音乐框架,我也尝试了用JobIntentService去实现发现还是有这个carsh,这个问题是因为服务的启动和停止引起的我百度了好久,没有一个好的解决方法,都快绝望了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants