Hi all,
I know that one can subscribe to the collected metrics via MXMetricManager and receive a daily update on the metrics data. Do I only receive metrics data about the app that I used to subcribe to the MXMetricManager instance? Or do I receive information about all applications that are registered within the iOS metrics data?
In my case I want to access the Battery Usage Data by apps which can be found under "Settings>Battery" to use it for some calculations.
I tried to implement the MetricKit in my project, but did not receive any useful data via the mock metrics function in XCode. Is there any reference on how the data one receives looks like? What is the structure of the JSON response? Do you only have access to it when your app is available in the App Store or are there some other options?
Any help is highly appreciated!
Best regards,
eddysTime
Does MetricKit give access to other apps metric data?
As far as I can understand, you receive only for your app (which subscribes to the service).
In fact, that would be a major privacy issue to give information about other apps or even about the whole iPhone.
Note that this does not work on simulator.
I found an interesting article about it, should give you some answers:
h ttps://nshipster.com/metrickit/
Hey Claude,
thank you very much for your response! I did not know about NSHipster until now and already bookmarked it for future readings.