From dc857436bcdcbd584b74192d056c8fd5b2657ce0 Mon Sep 17 00:00:00 2001 From: Murat Baysangurov Date: Fri, 15 Dec 2017 13:28:41 +0300 Subject: [PATCH 1/2] Fixes crash on startup of hockey manager in extensions --- Classes/BITCrashManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index 5164b7cf..4984a221 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -556,6 +556,7 @@ - (void) registerObservers { self.didLogLowMemoryWarning = YES; } }); + dispatch_resume(source); }); } else { self.appDidReceiveLowMemoryWarningObserver = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidReceiveMemoryWarningNotification From 377b0c6863170698e2983f876a10cb075ccf8055 Mon Sep 17 00:00:00 2001 From: Murat Baysangurov Date: Fri, 15 Dec 2017 13:28:56 +0300 Subject: [PATCH 2/2] Fixes bug with not sending crash reports in extensions --- Classes/BITCrashManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index 4984a221..61da7ad1 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -1054,7 +1054,7 @@ - (void)triggerDelayedProcessing { */ - (void)invokeDelayedProcessing { #if !defined (HOCKEYSDK_CONFIGURATION_ReleaseCrashOnlyExtensions) - if ([BITHockeyHelper applicationState] != BITApplicationStateActive) { + if (!bit_isRunningInAppExtension() && [BITHockeyHelper applicationState] != BITApplicationStateActive) { return; } #endif