1. LeoRex's Avatar
    This was something that I ran into way back with the first Preview of M.... and lead to a more hectic than normal morning.

    If you use a third party alarm application, that application may not properly register the alarm with the system Alarm manager. If it doesn't register that alarm, Doze really couldn't care less how much you need to wake up at 6:00 AM, it will never fire. Doze only allows alarms that are properly registered.

    Easiest way to check if your alarm app properly registers is to look at your status bar. If you have an alarm clock icon next to your signal cluster, you have a system alarm set... and Doze will allow it to wake your phone (you'll also see an alarm icon on the lock screen and notification shade). If you DON'T see any of these alarm messages, then the app won't work with Doze.

    Two solutions :

    1) Go to Settings - Battery - Battery Optimizations (in three dot menu) - All Apps... find your alarm app and set it to "Don't optimize". This SHOULD tell Doze to ignore the app and let it do its thing.

    2) Dump the alarm app and use one that properly registers the alarm. This is tricky because they don't come out and say it o the Play Store. Obviously, the stock alarm clock works. Timely (which was bought by Google) is another.

    3) (I haven't tested this one, do I can verify if it works) Go in and set a pre-alarm alarm using your phone's stock clock app. Doze allows system alarms to fire without being suppressed. Doze will set a timer at that point (I'll have to check how long that is). But if you set a system alarm, say, a minute before you alarm app goes off. Use a unobtrusive notification sound if you like... then when your app alarm fires a minute later, your phone will be in that Doze-less window.
    10-14-2015 03:37 PM
  2. Quax's Avatar
    Thanks a lot for this info
    10-17-2015 06:06 PM
  3. LeoRex's Avatar
    This might also affect calendar events as well... I'd have to test it to give you a definitive answer though. I suspect that it might only be third party calendar apps that don't use GCM calls, so they will be blocked unless made exempt.
    10-18-2015 10:40 PM
  4. Jewom's Avatar
    Thanks a lot for this information !
    12-07-2015 12:38 PM
  5. maxim_bo's Avatar
    Thank you! Very informative
    12-24-2015 07:50 AM
  6. crownybest's Avatar
    good to know, thanks
    02-01-2016 11:22 AM
  7. smithe24's Avatar
    Yeah! Really great info.. Thanks contributor.
    02-16-2016 09:48 AM
  8. JIeBop's Avatar
    Or if you really like your 3d party alarm - just kindly ask app developer on app page in market to improva alarm for Android M =)
    Nevertheless, thanks for information.
    02-22-2016 05:08 AM
  9. sharmi108k's Avatar
    Thank you for sharing
    02-22-2016 06:16 AM
  10. GeorgeCorrs's Avatar
    Thanks for the info it really helps.
    02-22-2016 08:33 AM
  11. thegreenbot's Avatar
    This piece of information is really good. Plus I always think it is useless to have 3rd party applications for the functions that can be performed by the native apps only. Thanks a lot.
    03-11-2016 10:09 PM
  12. miva2's Avatar
    Very useful tip and solutions.
    Unfortunately I'm not on 6 yet.
    03-23-2016 12:35 PM
  13. LeoRex's Avatar
    As more phones with 6.0 start making their way to users.. we'll see this more and more. Just a heads up to the community
    03-30-2016 07:24 AM
  14. JenniferPratt's Avatar
    Thank you for the valuable info. I will keep it mind regarding this and do accordingly whenever I will update my Android version to 6.0.
    04-11-2016 09:05 AM
  15. jean15paul's Avatar
    This was something that I ran into way back with the first Preview of M.... and lead to a more hectic than normal morning.

    If you use a third party alarm application, that application may not properly register the alarm with the system Alarm manager. If it doesn't register that alarm, Doze really couldn't care less how much you need to wake up at 6:00 AM, it will never fire. Doze only allows alarms that are properly registered.

    Easiest way to check if your alarm app properly registers is to look at your status bar. If you have an alarm clock icon next to your signal cluster, you have a system alarm set... and Doze will allow it to wake your phone (you'll also see an alarm icon on the lock screen and notification shade). If you DON'T see any of these alarm messages, then the app won't work with Doze.

    Two solutions :

    1) Go to Settings - Battery - Battery Optimizations (in three dot menu) - All Apps... find your alarm app and set it to "Don't optimize". This SHOULD tell Doze to ignore the app and let it do its thing.

    2) Dump the alarm app and use one that properly registers the alarm. This is tricky because they don't come out and say it o the Play Store. Obviously, the stock alarm clock works. Timely (which was bought by Google) is another.

    3) (I haven't tested this one, do I can verify if it works) Go in and set a pre-alarm alarm using your phone's stock clock app. Doze allows system alarms to fire without being suppressed. Doze will set a timer at that point (I'll have to check how long that is). But if you set a system alarm, say, a minute before you alarm app goes off. Use a unobtrusive notification sound if you like... then when your app alarm fires a minute later, your phone will be in that Doze-less window.
    This is great information on 3rd party alarms that aren't properly recognized as a system alarm, and that Doze might not allow them to ring.

    But I think the OP's solution might not be completely correct. Someone please correct me if I'm wrong. To me it sounds like the OP is confusing two new battery saving feature in Marshmallow: Doze and Optimize Apps (i.e. App Standby).

    Optimize Apps is feature that prevents apps from running in the background (even when the phone is in use) if you haven't used the app in a while (default is 3 days). It stops background tasks and only allows optimized apps to check for notifications once a day.

    Doze prevents battery drain based on the current use of the phone/tablet (not app usage). It prevents all background data and most background tasks if the screen is off, the phone is motionless, and it's not plugged in.

    Selecting "Don't optimize" from the battery menu should prevent the phone from putting that app into app standby (which is definitely a good idea for your alarm app). But I don't think it will do anything to prevent the phone from Doze-ing.

    Ultimately, the solution is that alarm apps need to be made correctly so they are recognized as system alarms. A work around is to make sure the phone stays plugged in so it doesn't Doze.

    More info here: Optimizing for Doze and App Standby | Android Developers

    I hope this helps.
    05-09-2016 11:57 AM
  16. LLcdPH's Avatar
    I'm still having the issue of the alarm on my S7 Edge sounding for 2 or 3 notes and then muting itself. It doesn't matter whether it is the stock alarm, Google's clock alarm, or another 3rd party. I've done a complete factory reset and taken the phone to AT&T and had the OS re-flashed. Same issue. I had a Note 5 on Verizon previously and didn't have the issue when running Android 6.01. Samsung "customer support" says send it to them to look at meaning I'd be without a phone for several days (weeks?) which is unacceptable with a newly purchased device. That's the kind of service they provide for Samsung "platinum level" customers. Never another Samsung! Since I rely on my phone for work, it appears that my only option now is to buy a different phone (from a different manufacturer) and dump this one.
    05-24-2016 09:18 PM
  17. cirkit's Avatar
    Thanks for the info!
    05-28-2016 08:47 PM
  18. LeoRex's Avatar
    But I think the OP's solution might not be completely correct. Someone please correct me if I'm wrong. To me it sounds like the OP is confusing two new battery saving feature in Marshmallow: Doze and Optimize Apps (i.e. App Standby).]
    Whitelisting an app in the 'Optimize Apps' screen exempts it from both Doze and App Standby.
    06-02-2016 06:41 AM
  19. RodrigoDLPontes's Avatar
    Wow, will look out for that. Thanks!
    06-21-2016 04:40 PM

Similar Threads

  1. How to stream from a Galaxy Note 5 to smart TV without using internet.
    By RussellSch in forum Samsung Galaxy Note 5
    Replies: 27
    Last Post: 02-15-2018, 12:45 PM
  2. Replies: 11
    Last Post: 10-20-2015, 01:29 PM
  3. App Notifications Only Vibrate, No Sound
    By theycallmemeg in forum Moto G (2015)
    Replies: 1
    Last Post: 10-14-2015, 04:00 PM
  4. Replies: 0
    Last Post: 10-14-2015, 03:19 PM
  5. Replies: 0
    Last Post: 10-14-2015, 03:19 PM
LINK TO POST COPIED TO CLIPBOARD