Posts

Post not yet marked as solved
0 Replies
130 Views
I have an app on App Store and some users started seeing this bug when the app requests for Screen Time API usage. The error is "The data couldn't be read because it isn't in the correct format". But it works still for most users and I can't reproduce it on my device. Checking the competitors, some of them shows this error when requesting for ScreenTime usage: "An unknown error occurred: NSCocoaErrorDomain, 4864) Has anyone experienced this? Thank you! My code below requesting screen time authorization .onAppear { Task { do { try await center.requestAuthorization(for: .individual) if center.authorizationStatus == .approved { self.checkApproved() } else { state = .denied } } catch let error { showingAlert = true errorTitle = error.localizedDescription state = .denied } } }
Posted Last updated
.