Device Activity

RSS for tag

Monitor web and app usage through custom time windows and events.

Posts under Device Activity tag

43 Posts
Sort by:
Post not yet marked as solved
12 Replies
2.1k Views
Compiled existing app with XCode Version 13.0 beta (13A5154h) without any source code changes and tested on iPhone XR running iOS 15 (beta) and noticed that the Device Proximity sensor features quit working. Compiling the identical app with Xcode Version 12.5 release (12E262) and running on another iPhone XR with iOS 14.6 does work as expected. The app also works as expected on iOS releases prior to version 14.6. Also, downloading the app from the AppStore and executing it on the Phone with iOS 15 (beta) shows the same issue. Has anyone experienced a similar problem using iOS 15 (beta) and found a solution. Any recommendations are welcome. Thanks, DJ
Posted
by DJHarter.
Last updated
.
Post not yet marked as solved
1 Replies
444 Views
I have created the app that uses Screen Time API (Device Activity, Managed Settings and Family Control). I have allowed on child device block and unblock apps that are selected in familyPicker, but I have to add ability to unblock these apps for some period of time. I have tried this:             do {                     center.stopMonitoring()                     try center.startMonitoring(.unblock, during: schedule, events: [.encouraged: DeviceActivityEvent(                         applications: applications.applicationTokens,                         threshold: DateComponents(second: 30)                     )])                     print("Unblock apps")                 } catch {                     print("Error")                 } Maybe I have to use another way to do it? but this doesn't work for me.
Posted
by dimius555.
Last updated
.
Post not yet marked as solved
1 Replies
273 Views
Several times over the last week, I've noticed a green dot when unlocking my phone. It goes away shortly after the unlock completes. I understand this means an app is using my camera while the device is locked. I've enabled app activity recording and inspected the logs following these instructions: https://developer.apple.com/documentation/network/privacy_management/inspecting_app_activity_data Upon inspection, I'd expect to see an entry with "type": "access" somewhere but there are none. Everything recorded has the type networkAccess only. Why am I seeing the green dot without any related access logs?
Posted
by bdavis77.
Last updated
.
Post not yet marked as solved
0 Replies
349 Views
i managed to shield app according to selection from the picker on the child app. i noticed that the threshold is for all the usage time of al the apps combined together. that means that if the threshold is 10 minutes and i used one of the selected apps 5 minutes and the other one for 5 minutes they both will be blocked. what i'm trying to do is that if each an app reached the threshold only it will be shielded anyone knows how to to this?
Posted
by vova085.
Last updated
.
Post not yet marked as solved
1 Replies
560 Views
With the new iOS 15 screen time API, is it possible to get the usage history of apps or app categories? Like instead of just tracking the current usage within your newly added schedule, is there a way to see the average time spent on your phone for the past week/month/year like you can in settings?
Posted
by masonbk75.
Last updated
.
Post not yet marked as solved
0 Replies
357 Views
in order to block an app i need to have a bundle identifier for the app i want to block and then pass it to the Application constructor like this: Application(bundleIdentifier: "com.apple.calculator") then i can use it inside my app extension to block it in the case of shielding an app the situation is that i need the applicationToken which i tried to get from the Application object and transfer it to my app extension threw NSUserDefaults with no success. it seems that applicationToken value is unreachable and nil when i create an Application object. after this i tried to get an applicationToken of a selected app from the familyActivityPicker and i had success and managed to shield the app i selected. i did all of this on a child device only in a parent device the familyActivityPicker shows only categories and i cant figure out how the connection to the child apps in order to block or shield them will be made my questions are: is it possible to get applicationTokens not from the familyActivityPicker? how the parent app suppose to block an app on the child app without having any apps showing? how a parent app is "talking" with the child app exactly?
Posted
by vova085.
Last updated
.
Post not yet marked as solved
1 Replies
414 Views
i'm trying to make my app start blocking/shielding and app according to the selection from a familyActivityPicker. the problem that i'm having is that MyModel object is always nil when i'm accessing it inside the app extension. (DeviceActivityMonitor). can someone give me an example of the object he uses to get the applicationTokens in the app extension? an explanation on how to transfer information between the app and the app extension is also welcome.
Posted
by vova085.
Last updated
.
Post marked as solved
1 Replies
429 Views
I have tried to use Screen Time API. The problem is that I can't get access to FamilyControl framework on parent's device. What should I do to get access? class AppDelegate: NSObject, UIApplicationDelegate {        func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {         AuthorizationCenter.shared.requestAuthorization { res in             switch res {             case .success():                 print("===SUCCESS AUTHORIZATION===")             case .failure(let error):                 print(error.localizedDescription)             }         }         return true     } }
Posted
by dimius555.
Last updated
.
Post not yet marked as solved
1 Replies
613 Views
Hi! There weren't any mentions in the video and documentation on how the Screen Time API handles multiple children and multiple devices. Specifically, cases like this: Multiple children with one device per child Multiple children with multiple devices per child (e.g. iPhone + iPad) Parent/guardian with multiple devices The FamilyActivityPicker doesn't take any parameters. What will happen when a parent with multiple kids opens the picker? Thanks.
Posted
by khanov.
Last updated
.
Post not yet marked as solved
0 Replies
399 Views
Hello everyone! Who knows? Who tried it? In the technical documentation for the new mac 2021 on m1, it is written that only 1 additional monitor can be connected. How about two? I have 2 additional monitors working perfectly on mac 2017 in addition to the main one. I'm used to working in xcode on 3 monitors. What should I do? Is it possible to connect 2 additional ones?
Posted Last updated
.
Post not yet marked as solved
3 Replies
1.2k Views
I am writing an app of family controls and device settings. In the docs for DeviceActivityMonitor I read about the principal class of device activity monitor extension, so I have to implement it. But, in XCode there is no such extension. How do i create it?
Posted Last updated
.
Post not yet marked as solved
8 Replies
1.3k Views
Several questions to some intentions behind the frameworks and specific issues with it's usage, underlined with filed Feedback Assistant reports. (see below) Understanding of the Application class Such class can be either instantiated with the token (which only the OS provides with the FamilyActivityPicker) or through a bundleIdentifier. When is it intended to use the bundleIdentifier initializer? Currently it is not possible to set a threshold limit on an application created via bundleIdentifier because the DeviceActivityEvent only accepts a Set<ApplicationToken> which a developer can not instantiate. Family Picker Is it intended to use this picker only on the child's device or can the parent see which apps are installed on the child's device? (FB9375607 & FB9375638) If so, how do you imagine when a new app get's installed, does the guardian have to regularly check if a new app is installed and if so update it's settings on the child device? How can an app obtain the app icon of such an application or category? (FB9375449) ShieldConfiguration & Action When a schedule's callback happens (FB9375294) and an application is shielded we receive the localizedDisplayName of such application to show it in the shield UI. In the WWDC session it was said that you could have an action that let's you do a network request to e.g. ask the guardian to lift the restriction which is located in a different extension. Will the localizedDisplayName be available to be included in the request so that the guardian knows which app they lift the restriction on? Filed Feedback Assistant Tickets: Start monitoring returns Unauthorized when the device is authorized - FB9375294 Provide an app icon for an application instance - FB9375449 FamilyActivityPicker does not list apps on authorized child device - FB9375607 Show installed apps from child on guardians phone - FB9375638
Posted
by fuzi.
Last updated
.