diff --git a/include/mbgl/platform/darwin/reachability.h b/include/mbgl/platform/darwin/reachability.h index 0101b91d48f..78e302eafcd 100644 --- a/include/mbgl/platform/darwin/reachability.h +++ b/include/mbgl/platform/darwin/reachability.h @@ -38,7 +38,7 @@ #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type #endif -extern NSString *const kReachabilityChangedNotification; +extern NSString *const kMGLReachabilityChangedNotification; typedef NS_ENUM(NSInteger, NetworkStatus) { // Apple NetworkStatus Compatible Names. diff --git a/platform/darwin/reachability.m b/platform/darwin/reachability.m index d1413321b75..8abcf5ae6d4 100644 --- a/platform/darwin/reachability.m +++ b/platform/darwin/reachability.m @@ -35,7 +35,7 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF #import -NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification"; +NSString *const kMGLReachabilityChangedNotification = @"kMGLReachabilityChangedNotification"; @interface MGLReachability () @@ -452,7 +452,7 @@ -(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags // this makes sure the change notification happens on the MAIN THREAD dispatch_async(dispatch_get_main_queue(), ^{ - [[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification + [[NSNotificationCenter defaultCenter] postNotificationName:kMGLReachabilityChangedNotification object:self]; }); } diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index d4c26d6c9f8..793363b6386 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -256,7 +256,7 @@ - (void)commonInit // Notify map object when network reachability status changes. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) - name:kReachabilityChangedNotification + name:kMGLReachabilityChangedNotification object:nil]; MGLReachability* reachability = [MGLReachability reachabilityForInternetConnection];