mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-19 05:52:49 +08:00
Merge branch 'CB-9702' of https://github.com/pstoll/cordova-plugin-network-information
This commit is contained in:
commit
1132a18566
@ -118,7 +118,7 @@
|
||||
[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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user