Unable to get inbound and outbound byte count in Content Filter report.

Hello,

I am building a Content Filter app for iOS and would like to get access to some information about network connections that are happening on the device.

I managed to have the handle(_ report: NEFilterReport) method of my NEFilterControlProvider called, but the bytesOutboundCount and bytesInboundCount properties of the report are always 0.

How can I have the real byte count of the connection ?

The doc comments for those properties say:

This property is only non-zero when the report event is NEFilterReportEventFlowClosed or NEFilterReportEventFlowStatistics.

The .statistics event isn’t available on iOS, so have you checked that the report event is .flowClosed?

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unable to get inbound and outbound byte count in Content Filter report.
 
 
Q