Crashlytics: Add consent preferences defaults

These should have been defined already, but now they're the safe
defaults that should spring the dialog on startup, and doesn't grant
consent by default.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-12 20:04:45 -08:00
parent 7101527585
commit 5e4dd125dd

View file

@ -181,6 +181,8 @@ static AppController *kAppController = nil;
#else
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }];
#endif
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"crashlyticsConsented": @(NO),
@"crashlyticsAskedConsent": @(NO) }];
[FIRApp configure];