iOS 网络应用程序:防止屏幕变暗/锁定 [英] iOS web app: prevent screen dimming/locking

查看:43
本文介绍了iOS 网络应用程序:防止屏幕变暗/锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何防止 iOS 变暗和/或锁定我的 WEB 应用程序的屏幕?这是针对 WEB 应用程序的,因此任何本机代码建议均不适用.WEB 应用程序将在没有用户输入的情况下运行,我想避免 iOS 自动调暗/锁定屏幕(无需在全局设置中关闭该设置).

How do I prevent iOS from dimming and/or locking the screen of my WEB app? This is for a WEB app, so any native code suggestion would not apply. The WEB app would run without user input and I'd like to avoid iOS automatically dimming/locking the screen (without turning the setting off in the global settings).

WEB 应用程序有没有办法告诉 iOS 不要调暗/锁定屏幕?

Is there a way for a WEB app to tell iOS not to dimm/lock the screen?

如果以上不可用,是否有任何第三方应用程序可以在给定的网络应用程序运行时监控系统并关闭屏幕锁定/变暗?

If the above is not available, is there any third party app that would monitor the system and turn off screen locking/dimming when a given web app is running?

谢谢.

推荐答案

不,您不能从 Web 应用程序关闭自动锁定.此外,任何第三方应用都无法检测到这一点,因为应用无法真正在后台运行.

No you can not turn off the autolock from a WebApp. Also there is no way for any thirdparty app to detect this, since apps can not really run in the background.

这篇关于iOS 网络应用程序:防止屏幕变暗/锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆