https://bugs.kde.org/show_bug.cgi?id=404163
--- Comment #4 from kmahyyg <i...@kmahyyg.xyz> --- Part 2: Answer of your reply - Ask the user to disable "battery optimizations" for KDE Connect on first run of the app (I'm not sure this actually helps, though... can you try it?) > I have to say that, the situation that I met was under a non-AOSP standard > ROM. On my Google Pixel, it never need to disable the battery optimization > for KDE connect. But you could still do some check to notice user to disable > it or check the FAQ if they met the problem. On the latest release of Google > Pixel ROM, nothing need to be done, which means on standard AOSP ROM, this > app works totally fine. > This phone is running Huawei EMUI, even I enabled all the permission this app > wanted, enabled persistant notification and give the self-startup permission > and locked the background to be not killed. The EMUI is still going to kill > the app like the packet capture file suggests. From an experienced user, I > know that their background whitelist was hardcoded into the android > framework, so, maybe it's time to check another method. - Allow disconnection to happen, but set up a periodic task so the app reconnects every X minutes. > Maybe works. **BUT** the problem is still existing if the background was > killed. - Remove/reduce keepalives, and hope the connection will still be open when the phone is back from doze. Unfortunately, in Java it's not possible to tweak keepalive's parameters like we do on the desktop. > Maybe you could do some tweaks or some magic, check the Part 3 message. > If you remove keepalives, then the incoming call notification plugin may need > to be removed cuz the reason I listed above. - Can you try disabling battery optimizations for kdeconnect and see if it makes any difference? That would be the easiest of the three things. > Already answered on the first quote block. Thanks for your understanding and patience. Your guys did a really perfect job. -- You are receiving this mail because: You are watching all bug changes.