Post

Replies

Boosts

Views

Activity

Reply to MetricKit available for NetworkExtension
Hello Matt and Mike, According to the WWDC video "What's new in MetricKit" - https://developer.apple.com/videos/play/wwdc2020/10081/ Over the course of the day, the operating system is passively aggregating performance data for your app as it is used. This data is anonymized and designed to protect user privacy. What if I am building a security oriented application (for example in use with an MDM) that the user will likely never actively use. I.e. the user will not actively use the host application, because they don't need to. And all my important code runs through network extensions. Are metrics still gathered then ? According to my experiments so far, adopting the MXMetricManagerSubscriber protocol in my network extension code, and subscribing via MXMetricManager.shared doesn't seem to work from a network extension. I can see in the logs that a request is made (at least I believe that's what's happening) default 2020-10-22 18:04:06.585416 +0100 MetricKitCore metrickitd 318: 0x2233f com.apple.metrickit.core Received connection request from <PIDOFMYNETWORKEXTENSION> However, triggering a simulated event from Xcode (Debug > Simulate Metric Payloads...) doesn't seem to do anything. Could you confirm whether this is a supported scenario ? And if not, the metrics for network extensions can still be gathered in a timely fashion from the host process, even it's not run frequently, if ever ? Thank you in advance !
Oct ’20