What to do if alarms or sleep tracking don’t work?

Smartphones are getting more and more powerful, but the battery capacity is lagging behind. Vendors are always trying to squeeze some battery saving features into the firmware with any new Android release. With Android 6 (Marshmallow), Google has introduced Doze mode to the base Android, in an attempt to unify battery saving across the various Android phones.

Unfortunately, vendors such as Samsung, Huawei, OnePlus (and more) did not seem to catch that ball and they all have their own battery savers, usually very poorly written, saving battery only superficially.

These battery saving features have lots of side effects. They usually kill long running processes – but don’t care whether the user wants the process to run or not (think sleep tracking).
They also impose arbitrary limits on random things – like how many times can you schedule an alarm during the night. If you go over the limit – boom! No alarm in the morning! That’s what you get for not reading the documentation on vendor modifications (oh wait, there is no documentation).

How to prevent the alarm and sleep tracking from failing? Opt out of these battery savers.

Huawei

Huawei is one of the most troubled phones on the market, Chinese vendors tend to ignore Android best practices and implement very bizarre custom modifications which make background task nearly impossible to run.

Please enable:
Settings – Advanced Settings – Battery manager – Power plan is set to Performance..
Device Settings – Advanced Settings – Battery Manager – Protected apps – check for Sleep as Android as Protected
Device Settings – Apps – Sleep as Android – Battery – Power-intensive prompt [x] and Keep running after screen off [x]..

If all fails, please try to set the app as device administrator (Sleep as Android > Setting > CAPTCHA >Prevent escaping CAPTCHA). This may also prevent the system from killing sleep tracking.

OnePlus

The app simply does not work on OnePlus phones unless you turn off battery optimizations for Sleep. You can do that in System Settings > Apps > Gear Icon > Special Access > Battery Optimization. You can also just search “Doze” and click Battery Optimisations.

NOTE: Some of our users indicated that you need to activate Developer mode on your phone beforehand.

Samsung Galaxy

S8 (and apparently also some older phones) has introduced a flawed attempt at prolonging battery life called “App power monitor”. For Sleep as Android to work correctly, please whitelist Sleep from App power monitor.

How to do it:
Open the Settings app > Device maintenance > Battery > and at the bottom you’ll see a list of your most frequently used apps. You can sleep apps individually or in a group by selecting them then tapping the big SAVE POWER button. Apps that are sleeping will appear in the SLEEPING APPS list at the bottom (tap it to expand the list).
Scrolling further — all the way to the very bottom — and you’ll find Unmonitored apps. These are apps that you specifically want to exclude (white list) from App power monitor. When inside the Unmonitored apps menu, you can tap the 3-dot menu to add or delete apps from the list.

Rather than bothering with any of that, you can just turn off the App power monitor feature completely as it has little-to-no impact on battery life and only serves to handicap the normal functioning of your Galaxy phone. It’s excessive and in some cases downright misleading, using scare tactics to keep you reliant on Samsung’s software when other Android devices get by just fine without it.

Xiaomi

Xiaomi are the most troubled phones on the market. Chinese vendors tend to ignore Android best practices and implement very bizarre custom modifications which make background task nearly impossible to run.

Please enable:
Settings – Advanced Settings – Battery manager – Power plan is set to Performance..
Device Settings – Advanced Settings – Battery Manager – Protected apps – check for Sleep as Android as Protected
Device Settings – Apps – Sleep as Android – Battery – Power-intensive prompt [x] and Keep running after screen off [x]..

If all fails, please try to set the app as device administrator (Sleep as Android > Setting > CAPTCHA >Prevent escaping CAPTCHA). This may also prevent the system from killing sleep tracking.

Meizu

Xiaomi are one of the most troubled phones on the market. Chinese vendors tend to ignore Android best practices and implement very bizarre custom modifications which make background task nearly impossible to run.

Please enable:
Settings – Advanced Settings – Battery manager – Power plan is set to Performance..
Device Settings – Advanced Settings – Battery Manager – Protected apps – check for Sleep as Android as Protected
Device Settings – Apps – Sleep as Android – Battery – Power-intensive prompt [x] and Keep running after screen off [x]..

If all fails, please try to set the app as device administrator (Sleep as Android > Setting > CAPTCHA >Prevent escaping CAPTCHA). This may also prevent the system from killing sleep tracking.

Sony

Sony STAMINA MODE makes 3rd party alarms not work. There is no workaround from our side, you can either disable stamina mode or whitelist our application.

Share

20 thoughts on “What to do if alarms or sleep tracking don’t work?

  1. Hello,
    I would like to know if the Polar M600 works with Sleep as Android. Few months ago, it was working every time but now evry day it s fail after one hour or much more.
    Can you help me?
    Thank in advance
    Patrice Gailleux

          1. Settings > Apps > Sleep (as Android) > Battery > ensure that ‘close after screen locked’ option is off.
            (I am 95% sure this is the only workable method. )

  2. For Huawei phone, I found a tip for avoiding the app killing : You need to enable the noise record. In 2 months the application was not stopped during the night and the alarm worked all the time (app killed one night on 2 before then tip) 🙂

    1. Come on, it’s just a phone brand. We are not trying to insult you.
      The fact is that a very large portion of support requests that we get is from Huawei phones and in a lot of those, we have actually identified problems that are specific to Huawei as their implementation of some portions of the Android OS is buggy.

    1. Hello, we are not telling you to buy a new phone. Please read the guide – Samsung has some features (if you prefer to call them so) that clash with the intended use of our app. We are providing a workaround. Samsung has used the battery saving features to better market their phone, but when it comes to real world use, it’s just a badly designed idea.

  3. Oneplus instructions seem to be inaccurate for OP2, there is no “special access” option and searching “Doze” doesn’t return anything. A quick Google seems to indicate that you need developer mode for this.

    1. Hi, we are unable to guarantee precise instructions for a large number of phones. The rule of thumb is to exclude Sleep as Android from any power saving features your phone might have.

Leave a Reply

Your email address will not be published. Required fields are marked *