打盹模式和前台服务

编程入门 行业动态 更新时间:2024-10-18 20:21:27
本文介绍了打盹模式和前台服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

检查并购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.

更多推荐

打盹模式和前台服务

本文发布于:2023-11-27 08:01:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637191.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:前台   模式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!