Skip to content

Instantly share code, notes, and snippets.

@dodikk
Created December 10, 2019 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodikk/0949014c2a0191dcf187d7eb7f046e71 to your computer and use it in GitHub Desktop.
Save dodikk/0949014c2a0191dcf187d7eb7f046e71 to your computer and use it in GitHub Desktop.
MS Appcenter Crashes.TrackError() is sent even if the app has not crashed
1. TrackError() goes to appcenter logs
2. Which do get flushed even when no error happens
3. Once per 3 seconds

So the exceptions are forwarded to the native code

Here is the handler: https://github.com/microsoft/appcenter-sdk-apple/blob/2e67de41d6f14beea636eb05e09b3f7f95239542/AppCenterCrashes/AppCenterCrashes/MSCrashes.mm#L1309

Appending to the queue https://github.com/microsoft/appcenter-sdk-apple/blob/2e67de41d6f14beea636eb05e09b3f7f95239542/AppCenterCrashes/AppCenterCrashes/MSCrashes.mm#L1338

Initialized at: https://github.com/microsoft/appcenter-sdk-apple/blob/bdbc01cb8607a57fcf2d8d0abbfd731f99db4fcb/AppCenter/AppCenter/MSAppCenter.m#L615

Which has a flush interval : https://github.com/microsoft/appcenter-sdk-apple/blob/604ed24b8f119eb989b590239b85ea7309ec2b12/AppCenter/AppCenter/Internals/Channel/MSChannelUnitConfiguration.m#L28

Of 3 seconds https://github.com/microsoft/appcenter-sdk-apple/blob/e06a33254e55e1274ed993df46c4106a0f92e8ea/AppCenter/AppCenter/Internals/Util/MSConstants%2BInternal.h#L106

P.S. These are seconds since that value is used as NSTimeInterval https://github.com/microsoft/appcenter-sdk-apple/blob/507d9d7c230c94566e49f73d448b0718341ec0af/AppCenter/AppCenter/Internals/Channel/MSChannelUnitDefault.m#L404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment