如何预防“应用程序正在排干电池”。通知
我们有一个驾驶行为监控应用程序,需要在用户驾驶车辆时从电话中收集位置和传感器数据。我们在入职期间从用户获得必要的权限,以便能够始终访问位置。我们还优化了数据收集以减少电池的消耗。
尽管如此,我们的一些用户仍会收到Android生成的零星消息,即我们的应用程序正在排干电池。
是否有任何Android文档定义了何时显示此类通知的标准。如果用户忽略了通知,它仍然会继续发布。开发人员可以做些什么来防止该通知弹出。
谢谢
We have a driving behavior monitoring app that requires gathering location and sensor data from phone in background when the user is driving a vehicle. We take the requisite permissions from user during onboarding to be able to access Location All the time. We also optimise the data collection to reduce battery consumption.
Still, some of our users get a sporadic message generated by Android that our App is draining the battery.
Is there any Android documentation that defines the criteria on when such a notification is shown. If the user ignores the notification, will it still keep coming. Is there anything a developer can do to prevent that notification from popping up.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论