diff --git a/Source/BugsnagNotifier.m b/Source/BugsnagNotifier.m index 5c9e2a961..ea34831f0 100644 --- a/Source/BugsnagNotifier.m +++ b/Source/BugsnagNotifier.m @@ -404,7 +404,7 @@ - (void)updateAutomaticBreadcrumbDetectionSettings { UIWindowDidResignKeyNotification, UIScreenBrightnessDidChangeNotification]; #elif TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE - NSMutableArray *notifications = @[UIWindowDidBecomeHiddenNotification, + return @[UIWindowDidBecomeHiddenNotification, UIWindowDidBecomeVisibleNotification, UIApplicationWillTerminateNotification, UIApplicationWillEnterForegroundNotification, @@ -414,10 +414,11 @@ - (void)updateAutomaticBreadcrumbDetectionSettings { UIMenuControllerDidShowMenuNotification, UIMenuControllerDidHideMenuNotification, NSUndoManagerDidUndoChangeNotification, - NSUndoManagerDidRedoChangeNotification].mutableCopy; - if (&UIApplicationUserDidTakeScreenshotNotification) - [notifications addObject:UIApplicationUserDidTakeScreenshotNotification]; - return notifications; + NSUndoManagerDidRedoChangeNotification, +#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0 + UIApplicationUserDidTakeScreenshotNotification +#endif + ]; #elif TARGET_OS_MAC return @[NSApplicationDidBecomeActiveNotification, NSApplicationDidResignActiveNotification,