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

更新服务正在运行 这个notification 怎么取消 #295

Closed
chinaliuweijie opened this issue Dec 6, 2019 · 6 comments
Closed

更新服务正在运行 这个notification 怎么取消 #295

chinaliuweijie opened this issue Dec 6, 2019 · 6 comments

Comments

@chinaliuweijie
Copy link

setShowNotification 这个没有用啊

@chinaliuweijie
Copy link
Author

弹出版本更新对话框后,下拉出来会有一个通知提示更新服务正在运行,这个通知怎么取消不让显示

@higsx
Copy link

higsx commented Dec 9, 2019

    DownloadBuilder downloadBuilder = AllenVersionChecker.getInstance().downloadOnly(ui);
    //关闭 通知栏的 通知 ,有些 手机直接回报错.
    downloadBuilder.setShowNotification(false);

我可以用哈

@chinaliuweijie
Copy link
Author

setShowNotification 这个方法没用啊

@chinaliuweijie
Copy link
Author

应该是后台起了一个服务,android 规定服务必须有一个notification,必须有这个通知,这个怎么取消啊

@AlexLiuSheng
Copy link
Owner

2.2.0 setRunOnForegroundService 最好以前台服务运行 防止后台更新进程被杀死

@AlexLiuSheng
Copy link
Owner

2.2.2

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

3 participants