From ba93a0a3f14bf925d1a4a8f76072fec18a7ad890 Mon Sep 17 00:00:00 2001 From: Enea Date: Wed, 3 Feb 2016 18:44:45 -0500 Subject: [PATCH 1/2] Do not notify about SIMULATED Crash Reports Simulated crash reports are caused by long running tasks in the BG and do not actually cause apps to crash. There is not need to notify the user and in fact the notifications can be quite annoying. --- notifier/main.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/notifier/main.m b/notifier/main.m index f674e3d..2c8de61 100644 --- a/notifier/main.m +++ b/notifier/main.m @@ -78,6 +78,12 @@ int main(int argc, char **argv, char **envp) { fprintf(stderr, "ERROR: Could not load crash log file \"%s\".\n", [filepath UTF8String]); return 1; } + + CRException *exception = [report exception]; + if ([[exception type] integerValue] == 20) { + //Simulated Crash No Need To Report + return 0; + } if (!isDebugMode) { // Check freshness of crash log. From 7ab135e2e6bc9af4c05b1f8a24e6dda290668fc4 Mon Sep 17 00:00:00 2001 From: Enea Date: Wed, 3 Feb 2016 18:48:40 -0500 Subject: [PATCH 2/2] Probably a safer bet to use the String value of exception type to compare --- notifier/main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifier/main.m b/notifier/main.m index 2c8de61..1a82417 100644 --- a/notifier/main.m +++ b/notifier/main.m @@ -80,7 +80,7 @@ int main(int argc, char **argv, char **envp) { } CRException *exception = [report exception]; - if ([[exception type] integerValue] == 20) { + if ([[exception type] isEqualToString:@"00000020"]) { //Simulated Crash No Need To Report return 0; }