Work Manager on chinese ROMs like Xiaomi and oppo, when under battery optimization, increase the scheduled delay of work by several hours

前端 未结 6 1728
星月不相逢
星月不相逢 2020-12-06 08:20

Work Manager on Chinese ROMs like Xiaomi and Oppo, when under battery optimization, increase the scheduled delay of work by several hours., however, I have noticed some apps

6条回答
  •  死守一世寂寞
    2020-12-06 08:59

    Xiomi MiUi 11 (chinese version of firmware) Work Manager very badly by default and runs in random order several times and after a few hours it just stops working.Further nothing happens. To solve the problem, I took 2 steps

    1. Settings->Battery & perfomance -> App battery saver -> Select you application -> No restrictions
    
    2. Settings -> Apps -> Permissions -> Autostart -> Add your application to autostart
    

    After I added to Autostart and No restrictions battery. I rebooted the device and it worked correctly with Work Manager. I think that on Chinese devices that have heavily modified android, it is only possible to manually add launch permissions.

提交回复
热议问题