I have an app wchich should do some work once per day. I'm using AlarmManager
and setExact(...)
method (set(...)
on pre KitKat devices) and custom BroadcastReceiver
. This code works on all tested phones (android versions between 4.2 and 6.0.1), but there is one device with very strange behavior. On Huawei P8 Light (Android 6.0.1) application works fine, but when i kill my app using task manager AlarmManager
stops and my everyday task is never triggered. I tried to build some workaroud using Sticky service
, but it's also killed when i kill app using task manager.
My code works properly on Huawei only when app is not killed. Is this normal behavior for this spartphone? I never met anything like this. Is there any way to force this phone to proper work?