一旦强制关闭应用程序,工作经理的定期工作就无法在中文ROM上运行 [英] Work manager periodic job not working on chinese ROMs once app is force closed
问题描述
我曾尝试过堆栈溢出,但人们只添加了Android文档,该文档说它将起作用,但我没有在Google的问题跟踪器
I have tried stack overflow but people only added Android documentation which says it'll work but it doesn't i have also raised an issue in google's issue tracker here.
我已经在以下Android版本上进行了测试:6、7、8和工作管理器1.0.0-alpha11、1.0.0-alpha12
I have tested on Android versions: 6, 7, 8 and work manager 1.0.0-alpha11, 1.0.0-alpha12
如果有人找到了执行定期工作的任何解决方案,请评论这将是很大的帮助.谢谢
If anyone has found any solution for running periodic job please comment it'll be a great help. Thanks
推荐答案
这是一个已知问题,已评论在Google的Issuetracker的另一个错误中,在这种情况下,WorkManager不能执行的操作很多.
This is a known issue and, as commented in this other bug on Google's issuetracker, there's not much that WorkManager can do in these cases.
如在此错误中所述:
...如果设备制造商决定修改库存的Android以强制停止应用程序,则WorkManager将停止工作(JobScheduler,警报,广播接收器等也将停止工作).没有办法解决此问题.不幸的是,某些设备制造商会这样做,因此在这种情况下,WorkManager将停止工作,直到下次启动该应用程序为止.
...if a device manufacturer has decided to modify stock Android to force-stop the app, WorkManager will stop working (as will JobScheduler, alarms, broadcast receivers, etc.). There is no way to work around this. Some device manufacturers do this, unfortunately, so in those cases WorkManager will stop working until the next time the app is launched.
这篇关于一旦强制关闭应用程序,工作经理的定期工作就无法在中文ROM上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!