简体   繁体   English

如何从应用程序内部或外部MDM以编程方式更改屏幕时间和隐私限制设置?

[英]How to change Screen Time and Privacy restrictions settings programatically from inside an app or from an external MDM?

IOS 12 introduced some basic screen time settings. iOS 12引入了一些基本的屏幕时间设置。

Is there any way to view or change these settings programatically from inside an app or from an external MDM? 是否可以从应用程序内部或外部MDM以编程方式查看或更改这些设置?

Specifically, I would like to be able to change the time limits, the downtime schedule, and/or the list of allowed apps. 具体来说,我希望能够更改时间限制,停机时间表和/或允许的应用程序列表。 Ideally from the parent device but from the child device or from an MDM would be acceptable too. 理想情况下,来自父设备但来自子设备或MDM也是可以接受的。 I want a solution like an existing application did.( https://itunes.apple.com/us/app/id981066103 Parental Control - Screen Time) 我想要像现有应用程序那样的解决方案。( https://itunes.apple.com/us/app/id981066103家长控制 - 屏幕时间)

I'm really interested in this as well, and can share my findings with you here: 我也对此很感兴趣,可以在这里与您分享我的发现:

  • There is no possible way to use the screen time / API at the time of writing. 在撰写本文时,无法使用屏幕时间/ API。 Since apps use .entitlements now, private APIs are out of the question as well. 由于应用程序现在使用.entitlements,私有API也是不可能的。
  • Apple is most likely thinking about releasing a screen time API, since the feature is added in the iOS Simulator. 苹果最有可能考虑发布屏幕时间API,因为该功能已添加到iOS模拟器中。
  • Apple is rejecting and removing screen time apps for no apparent reason right now. Apple现在无缘无故地拒绝和删除屏幕时间应用程序。

There is one solution for now though: use MDM. 现在有一个解决方案:使用MDM。 The mobile device management system does not allow you to change the screen time settings on the device, but you do have control over what apps are allowed to be opened. 移动设备管理系统不允许您更改设备上的屏幕时间设置,但有过什么样的应用程序允许被打开的控制。 Bind this to some date/time logic and you have a simplified version of the screen time app. 将此绑定到某个日期/时间逻辑,您有一个简化版本的屏幕时间应用程序。 The same function can also be used to track the time an app has been opened. 同样的功能也可用于跟踪应用程序打开的时间。

The app you mentioned uses the above MDM solution as well. 您提到的应用程序也使用上述MDM解决方案。 (Actually, all apps do) (实际上,所有应用程序都这样做)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当用户更改隐私设置时,iOS应用返回到主屏幕是正常行为吗? - is it normal behaviour for an iOS app to go back to its home screen when users make a change to privacy settings? 如何检测是从应用商店还是从MDM商店安装了应用? - How to detect if app was installed from the app store or from MDM store? 如何在iOS上记录其他应用程序的屏幕内容? 是否存在关于隐私(app sandbox)的安全问题? - How to record screen content from other apps on iOS? Are there security concerns regarding privacy (app sandbox)? MDM可以限制用户更改日期时间设置 - Can MDM restrict user to change date time settings 当应用程序检测到隐私设置更改时自动重启 - Having app restart itself when it detects change to privacy settings Vimeo在iOS应用中嵌入的视频:“抱歉,由于其隐私设置,此视频无法在此播放” - Embedded videos from Vimeo in iOS app: “Sorry, because of its privacy settings, this video cannot be played here” 从 MDM 安装后企业应用程序崩溃 - Enterprise App Crashes after Install from MDM 通过iOS应用程序通过MDM证明设备注册 - Prove device enrollment with MDM from an iOS App 有谁知道如何从应用程序内部更改iPhone设置? - Does anyone know how to change the iPhone settings from interior of an app? 切换隐私设置会杀死应用程序 - Toggling Privacy settings will kill the app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM