Post

Replies

Boosts

Views

Activity

Reply to Making Network Requests from DeviceActivityMonitor Extension
Thank you for the solution, and it almost works perfectly! However, I am trying to wait for two network requests, and only the first one is running. Here is a sample of my code: let waitForMyNetworkRequest = DispatchGroup() waitForMyNetworkRequest.enter() Task { // This request successfully hits my server     await pushScoreUpdate() // These log statements and requests don't run     logger.log("Successfully pushed score update")     await pushHistory(since: since)     logger.log("Successfully pushed history")     waitForMyNetworkRequest.leave() } // Force the system to wait for your network request. waitForMyNetworkRequest.wait(timeout: .now() + 60.0) Also, I'm not even able to read the response from my first request, even though I've confirmed that it hits my server. Here's a sample of my networking code: ... let configuration = URLSessionConfiguration.default configuration.sharedContainerIdentifier = "group.core.data.Present" configuration.isDiscretionary = false         let (data, _) = try await URLSession(configuration: configuration).data(for: request) logger.log("Got response") ... Maybe I'm not setting up the DispatchGroup right to wait for multiple async functions? Or maybe it's the way I'm configuring my URLSession that automatically exits the dispatch group? It appears that I've made progress in being able to send the initial request, but the extension is still terminating before I'm able to read the response.
Topic: Privacy & Security SubTopic: General Tags:
Feb ’23
Reply to Screen Time discrepancy between DeviceActivityMonitor and DeviceActivityReport
Thank you for your reply, and for all your replies on my questions on the DeviceActivity Framework! I've filed https://feedbackassistant.apple.com/feedback/11901286. But do you have any information about apps or websites that do not fall under a specific category, but are still monitored by DeviceActivityMonitor by default (without selecting any categories, apps, or websites). I am particularly suspicious of FaceTime, which does not show up anywhere in a breakdown inside iOS' native Screen Time app, but does add to total Screen Time reported. Settings and Safari also appear to have non-typical behavior like this. Can you provide any knowledge you have about these apps that do not appear under a specific category, and how they behave under the DeviceActivity Framework?
Topic: Privacy & Security SubTopic: General Tags:
Dec ’22