[ios] Use staging server in simulator
Use the staging telemetry server when compiled for the iOS Simulator. Fixes #3621.
This commit is contained in:
committed by
Minh Nguyễn
parent
0c44266ffb
commit
4edd1e9658
@@ -42,7 +42,6 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
|
||||
@"MBXUserTrackingMode": @(MGLUserTrackingModeNone),
|
||||
@"MBXShowsUserLocation": @NO,
|
||||
@"MBXDebug": @NO,
|
||||
@"MGLTelemetryTestServerURL": @"https://cloudfront-staging.tilestream.net",
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +140,9 @@ const NSTimeInterval MGLFlushInterval = 180;
|
||||
@"MGLMapboxAccountType": accountTypeNumber ?: @0,
|
||||
@"MGLMapboxMetricsEnabled": @YES,
|
||||
@"MGLMapboxMetricsDebugLoggingEnabled": @NO,
|
||||
#if TARGET_OS_SIMULATOR
|
||||
@"MGLTelemetryTestServerURL": @"https://cloudfront-staging.tilestream.net",
|
||||
#endif
|
||||
}];
|
||||
}
|
||||
}
|
||||
@@ -360,7 +363,7 @@ const NSTimeInterval MGLFlushInterval = 180;
|
||||
[self pushTurnstileEvent];
|
||||
}
|
||||
|
||||
if ([self isPaused]) {
|
||||
if (self.paused) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -450,7 +453,7 @@ const NSTimeInterval MGLFlushInterval = 180;
|
||||
// Called implicitly from public use of +flush.
|
||||
//
|
||||
- (void)postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events {
|
||||
if ([self isPaused]) {
|
||||
if (self.paused) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user