Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Oct 23, 2015
2 parents fd1055e + 5aac260 commit 1132a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ - (void)pluginInitialize
[self.internetReach startNotifier];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateConnectionType:)
name:kReachabilityChangedNotification object:nil];
if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) {
if (UIApplicationDidEnterBackgroundNotification && UIApplicationWillEnterForegroundNotification) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onPause) name:UIApplicationDidEnterBackgroundNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onResume) name:UIApplicationWillEnterForegroundNotification object:nil];
}
Expand Down

0 comments on commit 1132a18

Please sign in to comment.