问题描述
检查并购preVIEW设备我的应用程序的行为,似乎它的前景(与活动的通知)服务播放音乐的不是受打盹模式。但阅读文档似乎前台服务免征只能从AppStandby。
Checking my app's behavior on M Preview device, it seems that its foreground (with active notification) service playing music is not affected by Doze mode.But reading docs it seems that foreground services are exempt only from AppStandby.
什么是真正的规则?
推荐答案
在这个帖子一>的09月17戴安娜Hackborn评论写道:已经跑前台服务(与相关的通知)的应用程序不受打盹的限制。
In this Post's comments on Sep 17 Dianne Hackborn writes:"Apps that have been running foreground services (with the associated notification) are not restricted by doze."
所以,是的,你的发现似乎是预期的行为。
So yes, your findings seem to be the intended behavior.
打盹模式还真是厉害记录到现在为止,这几乎是有趣,你必须收集来自谷歌+评论等基本信息。
Doze mode really is badly documented up to now and it's almost funny that you have to collect such fundamental information from google+ comments.
这篇关于打盹模式和前台服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!