diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 7fcaf6b..da4b5a8 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -49,7 +49,7 @@ NSString *const kAPPBackgroundEventFailure = @"failure"; { NSNotificationCenter* listener = [NSNotificationCenter defaultCenter]; - if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) { + if (UIApplicationDidEnterBackgroundNotification && UIApplicationWillEnterForegroundNotification) { [listener addObserver:self selector:@selector(keepAwake)