Post

Replies

Boosts

Views

Activity

Reply to Stop tunnel method gets interrupted on 'providerDisabled'
@eskimo, Here is a pseudo code scenario, with logging when the extension gets called stopTunnel with a reason being .providerDisabled. I have a OSLog instance to check how far it will execute the method. It will only print "stopTunnel because" and the "starting clean-up") and then gets exited due to uninstall I guess. override func stopTunnel(with reason: NEProviderStopReason) async { logger.log("Stop tunnel because: \(reason, privacy: .public)") if case .providerDisabled = reason { logger.log("Starting clean-up") let result = await doPseudoCodeCleanup() switch result { case .success: logger.log("clean up done") case .failure(let error): logger.log("Clean up failed due to error: \(error.localizedDescription, privacy: .public)") } logger.log("providerDisabled cleanup, done.") } logger.log("Stop tunnel end") }
Sep ’22
Reply to New DeviceActivityAuthorization API without documentation
Yes sure, there you go: FB19256982
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to New DeviceActivityAuthorization API without documentation
Any update from an @Apple Engineer for the anniversary of this API being public but not documented?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to Device Activity Monitor Extension Sometimes Fails To Launch
I think we found a reason on how this can be reproduced - we also only see this happening very often with iOS 17.4 and up. Please boost: https://forums.developer.apple.com/forums/thread/756959 fyi @_anteloper , @charleswinston , @thomas_maht
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to `eventDidReachThreshold` Not Triggering Consistently in Device Activity Monitor Extension
Hi @thomas_maht , I think I found the reason. Referencing my post here, please boost: https://forums.developer.apple.com/forums/thread/756959
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to iOS Screen Time enabled check
I filed a feedback request, alongside this post FB11993689
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to DeviceActivityCenter - couldn’t communicate with a helper application.
@Kmart @_anteloper - this happens a lot of times on production users: FB11983206
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Can I use OSLogStore to access logs from earlier runs of my app?
@esikmo please push this ticket: FB11505498
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Stop tunnel method gets interrupted on 'providerDisabled'
I observe this on iPad OS 16 (last beta before RC) and iOS 16 (RC).
Replies
Boosts
Views
Activity
Sep ’22
Reply to Stop tunnel method gets interrupted on 'providerDisabled'
@eskimo, Here is a pseudo code scenario, with logging when the extension gets called stopTunnel with a reason being .providerDisabled. I have a OSLog instance to check how far it will execute the method. It will only print "stopTunnel because" and the "starting clean-up") and then gets exited due to uninstall I guess. override func stopTunnel(with reason: NEProviderStopReason) async { logger.log("Stop tunnel because: \(reason, privacy: .public)") if case .providerDisabled = reason { logger.log("Starting clean-up") let result = await doPseudoCodeCleanup() switch result { case .success: logger.log("clean up done") case .failure(let error): logger.log("Clean up failed due to error: \(error.localizedDescription, privacy: .public)") } logger.log("providerDisabled cleanup, done.") } logger.log("Stop tunnel end") }
Replies
Boosts
Views
Activity
Sep ’22