ADD: Detect if report is from macOS

This commit is contained in:
Marcos Rodriguez Velez 2024-03-14 18:37:23 -04:00
parent a06136bbaf
commit a27b867399
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -20,7 +20,17 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Set the appType based on the current platform
#if TARGET_OS_MACCATALYST
BugsnagConfiguration *config = [BugsnagConfiguration loadConfig];
config.appType = @"macOS";
// Start Bugsnag with the configuration
[Bugsnag startWithConfiguration:config];
#else
[Bugsnag start];
#endif
[self copyDeviceUID];
[[NSUserDefaults standardUserDefaults] addObserver:self