I'm adding a few custom signposts with mxSignpost(.begin,...) and mxSignpost(.end,...). Is there a way to force delivery of the MXMetricPayload so I don't need to wait for the daily aggregation to be pushed?
                    
                  
                MetricKit
RSS for tagAggregate and analyze per-device reports on power and performance metrics using MetricKit.
Posts under MetricKit tag
            
              
                25 Posts
              
            
            
              
                
              
            
          
          
  
    
    Selecting any option will automatically load the page
  
  
  
  
    
  
  
              Post
Replies
Boosts
Views
Activity
                    
                      In MetricKit, a metric payload comes in with a time range which usually means it contains multiple launches/sessions. How can we relate things that will change between launches or sessions such as pid and lowPowerModeEnabled from the metadata. Will there be multiple payloads for each unique value or is there some other way to use this?
                    
                  
                
                    
                      Can you confirm that if you launch an app in the U.S. (in the iOS store) that is you cannot select a specific state (i.e. Rhode Island, North Carolina etc.) to roll out your app? In other words when you launch your app in the U.S. it has to be for the entire country right?
Can someone please confirm that this is the case and has always been the case in any app store (i.e. Google Play and IOS)?
Thanks. - Erik
                    
                  
                
                    
                      In recent versions, the increase in background abnormal exits is significant. According to monitoring data, it is closely related to the iOS 26 system. Could you please look into the reasons or provide some suggestions for troubleshooting the issue?
                    
                  
                
                    
                      I'm working on adding MetricKit to our iPad application that we distribute internally via Enterprise distribution. I've set up the didReceive functions for both MXMetricPayload and MXDiagnosticPayload.
When I build onto a device via Xcode and use the Simulate MetricKit Payloads command, everything works as expected. The issue I'm having is when testing on a device via our enterprise distribution.
When I simulate a crash, I am receiving the MXDiagnosticPayload so that part is working correctly. However, I am never receiving a MXMetricPayload. I've been using the app and waiting up to 3 days in some tests and not receiving any payload over that time frame.
Some information I found suggested the issue might be MetricKit not working fully on enterprise apps but I haven't been able to find a definitive source on that question.  Hoping someone here can guide me on that. Thanks!
                    
                  
                
                    
                      Hallo all,
I did a test integration of MetricKit into one of our apps...I'am on macOS Ventura 13.3.1 (a). The app is not distributed via the App Store.
I subscribed to the MXMetricManager and implemented the didReceiveDiagnosticPayloads function.
So far everything seems to work, when I use in Xcode: Debug -> Simulate MetricKit Payload I get a callback and the payload.
So I did some further testing. When I build the app debug version with a test crash and then run the Debug Version (without Xcode) and let it crash the next time I start the app I get a callback to didReceiveDiagnosticPayloads with all the information about the crash.
But I'am not able to get a hang report. I tested it by adding a sleep (60) and adding some intensive computation work on the main thread so that it is busy for several seconds, I get no hang reports :-(
I'am using the Debug version and run it without Xcode.
Are hang reports expected to be reported immediately? I also get after 24 hours no hang reports.
Can someone help me?
Thanks and have a nice day!
                    
                  
                
                    
                      Background:
During daily usage of iOS devices, devices experience noticeable thermal issues. This heating not only affects user experience, but may also lead to device performance throttling, shortened battery life, and other problems. We need better understanding and monitoring of device thermal states to optimize application performance and user experience.
Issues Encountered:
Insufficient thermal monitoring capabilities: Unable to obtain real-time accurate temperature data from devices
Difficult power consumption analysis: Hard to determine which specific modules or threads cause high power consumption and heating
Requested Solutions:
Temperature Monitoring API: Provide accessible device temperature reading interfaces
Thermal Attribution Analysis Capability: During heating events, we expect to receive more detailed power consumption monitoring data, such as CPU, GPU, network, location services, display, high power consumption thread stacks and other information to help developers identify high energy consumption operations
                    
                  
                
              
                
              
              
                
                Topic:
                  
	
		App & System Services
  	
                
                
                SubTopic:
                  
                    
	
		General
		
  	
                  
                
              
              
                Tags:
              
              
  
  
    
      
      
      
        
          
            MetricKit
          
        
        
      
      
    
      
      
      
        
          
            Developer Tools
          
        
        
      
      
    
      
      
      
        
          
            Instruments
          
        
        
      
      
    
      
      
      
        
          
            Performance
          
        
        
      
      
    
  
  
              
                
                
              
            
          
                    
                      Two month back we published 28.11.0 version a app. for both foreground and background terminations are not properly showing by Xcode matrix
Foreground Termination:
I was able to see the termination bar chart for one release, but after that, the chart stopped showing real-time crash progress. However, crashes are still being reported directly by users.
Why is Xcode Organizer unable to capture these events? Please help us track them effectively.
Background Termination:
The termination bar chart has not appeared in Xcode Organizer for the last two releases, which span nearly two months.
As a result, we are unable to monitor app terminations for
background scenarios.
                    
                  
                
                    
                      Hello,
I am currently developing an iOS SDK, and I would like to clarify the allowed use of MetricKit, specifically regarding the MXAppRunTimeMetric.cumulativeBackgroundTime value.
My SDK tracks app lifecycle events for analysis purposes. I am considering sending the cumulativeBackgroundTime metric to my own backend server to monitor background usage patterns across different devices.
Before proceeding, I want to confirm:
Is it compliant with Apple’s App Store Review Guidelines to collect cumulativeBackgroundTime via MetricKit and transmit that data to my server?
I understand MetricKit is primarily intended for performance monitoring and local analysis, but since this is a runtime metric, I would like to verify whether off-device aggregation is acceptable.
I would appreciate any clarification regarding policy boundaries or best practices for this scenario.
Thank you in advance!
                    
                  
                
                    
                      What are my options if I want to iterate over loaded images (dynamic libraries) within a signal handler? I have a few solutions that might work, but without going too much into them, i'm curious if anyone has experience here, or ideas what to look into.
Cheers,
AC
                    
                  
                
                    
                      what is that makes the TLS be the TLS/SErver ?
                    
                  
                
              
                
              
              
                
                Topic:
                  
	
		Community
  	
                
                
                SubTopic:
                  
                    
	
		Swift Student Challenge
		
  	
                  
                
              
              
                Tags:
              
              
  
  
    
      
      
      
        
          
            App Tracking Transparency
          
        
        
      
      
    
      
      
      
        
          
            MetricKit
          
        
        
      
      
    
      
      
      
        
          
            Files and Storage
          
        
        
      
      
    
      
      
      
        
          
            IOBluetooth
          
        
        
      
      
    
  
  
              
                
                
              
            
          
                    
                      Hello Apple,
I am trying to get information such as crash context whenever a user encounters a situation where the app is killed. I was wondering if the tool MetricKit is available to all users or is this a feature to those who has opted into it. I am aware that the whenever someone gets a new device or in settings, an option will appear that'll have users decide whether or not to have Apple receive data analytics during certain events on their device. Does this have any effect on whether some users may not have MetricKit?
Overall, we are attempting to use MetricKit to better analyze performance of our app. It would be inefficient for us, if the population of users using MetricKit is only those who have opted into it.
Thanks,
dmaliro
                    
                  
                
                    
                      why my Xcode organizer can not show  Hangs
                    
                  
                
                    
                      We are looking for a platform or portal provided by Apple that allows us to track crashes, hangs, or other runtime issues faced by users while using our iOS/macOS application. This is similar to how we currently use Windows Error Reporting (WER) for our Windows application.
Important note: Our application is not distributed via the Apple App Store — it is delivered through enterprise distribution or ad-hoc provisioning.
                    
                  
                
              
                
              
              
                
                Topic:
                  
	
		Developer Tools & Services
  	
                
                
                SubTopic:
                  
                    
	
		General
		
  	
                  
                
              
              
                Tags:
              
              
  
  
    
      
      
      
        
          
            MetricKit
          
        
        
      
      
    
      
      
      
        
          
            App Store
          
        
        
      
      
    
      
      
      
        
          
            Custom Apps
          
        
        
      
      
    
      
      
      
        
          
            Enterprise
          
        
        
      
      
    
  
  
              
                
                
              
            
          
                    
                      We are currently pulling data via the API to look various metrics, including reviews and ratings.  However, I noticed the ratings only come in with associated reviews - it doesn't appear there is public access to the API for pulling all historic ratings (without associated reviews).
Is this correct?  Does anyone know a workaround or way to access the ratings data via API or other method?
                    
                  
                
              
                
              
              
                
                Topic:
                  
	
		App Store Distribution & Marketing
  	
                
                
                SubTopic:
                  
                    
	
		App Store Connect API
		
  	
                  
                
              
              
                Tags:
              
              
  
  
    
      
      
      
        
          
            MetricKit
          
        
        
      
      
    
      
      
      
        
          
            App Store Connect API
          
        
        
      
      
    
  
  
              
                
                
              
            
          
                    
                      Hello,
For one of my recent release (2 versions ago), I used to be able to check its p50 of Hang Rate, but now it disappear and not showing up in XCode Organizer Metrics anymore. The p90 of Hang Rate of this version is still there.
It's so unpredictable. Is there something we can do to get this data to populate? If not, may I understand usually why this issue will happen, is it something frond-end bug or is it because there is some thing abnormal going on in the back-end data?
                    
                  
                
                    
                      We recently integrated MetricKit into our app; however, the 90th percentile data does not seem to match the data in Xcode Organizer. The values reported by MetricKit appear to be higher. Additionally, it looks like data for previous app versions is not being updated in Organizer as adoption of the latest version increases.
Has anyone else experienced this issue? Could there be a delay in data updates for older versions in Organizer? Are there any known limitations or best practices for ensuring consistency between MetricKit and Xcode Organizer data? Any guidance would be greatly appreciated.
                    
                  
                
                    
                      Is there an API that exposes the percentage of crash free sessions/users just as what we have on Firebase Crashlytics for example?
Checked here https://developer.apple.com/documentation/appstoreconnectapi but dont find any.
                    
                  
                
                    
                      Hi,
From App analytics, we found that our app crashed from time to time on users' devices despite that we have tested it thoroughly on our devices. We are doubt that it's the reason why we can't retain them. But how can we get the crash reports for the app installed on user devices? We have no users' emails and can't ask them directly.
                    
                  
                
                    
                      We are building a framework which will be used by other apps. Want to integrate crash reporting and diagnostics for our framework. Want to report crashes to our backend happening inside our framework only and ignore app level crashes. Is it possible to filter crashes like that ?