I am developing an application for managing screen time, and I encountered an issue when retrieving DeviceActivityEvent bound to a specific DeviceActivityName using the events method of DeviceActivityCenter. I noticed that the application token data bound to DeviceActivityEvent is missing. Could you help me understand why this might be happening?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hi everyone,
I am a beginner in Swift and I am currently using DeviceActivityMonitor to develop an app for parents to control their children's app usage time. During the development process, I found that the DeviceActivityMonitor has a 6MB memory limit in the background, and my app exceeds this limit after running for a long time. I would like to know how to reduce the memory usage of DeviceActivityMonitor in the background, or where I can check the memory usage of DeviceActivityMonitor and see which variables are consuming memory.
Additionally, I want to know if a new instance of the DeviceActivityMonitor class is created every time it is called?
Thank you for your help!
I create two Extensions in my continer app.
Do I need create diffierent provisoning profiles for these Extensions ?
I have a host application and I've added an extension to it. The bundle IDs of the two are different. Do I need to apply for a separate Provisioning Profile for the extension?
I am currently developing an app to help people focus on their work.
I use familycontrols , managedsettings and devie activity to develop it.
I am currently facing an issue where I would like to hide the app selected by the user from the main screen and resource library.
But I did not find any relevant information in the document. Who can help me.
when i watch the video (https://developer.apple.com/videos/play/wwdc2022/110336/)
i find the code
let socialStore = ManagedSettingsStore(named: .social)
let socialCategory = database.socialCategoryToken
socialStore.shield.applicationCategories = .specific([socialCategory])
i try to find ManagedSettingsStore shield and specific([socialCategory]) i Documentation , but i failed.
who can tell me wher i can find about ManagedSettingsStore shield or specific([socialCategory]) ?
thanks a lot.