I'm programming apps and widgets. Recently I was reported that widget programmed by me stopped worked after a minute or so. All of those issues had one similar thing: MiUi. One device was Redmi, another one was Huawei, but both had MiUi. I was looking all my code around and failed to reproduce error(widget not replying at all on button click etc). But after I noticed, that all those issues occured on MiUi only, I found this video: https://www.youtube.com/watch?v=F1QBqmgf7bg .
As I don't own any of deviced having MiUi myself, I wanted to ask, if any of developers have any known workaround on widget coding level? Is it possible to request that some weird permission from app itself or some manifest tune-ups?
Any help would be very much appriciated