Skip to content

Commit d6852c7

Browse files
committed
fix: don't try to refresh with notification on iOS simulator
1 parent 2f81e5d commit d6852c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/livesync/ios-device-livesync-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
2424
}
2525

2626
private canRefreshWithNotification(projectData: IProjectData): boolean {
27+
if (this.device.isEmulator) {
28+
return false;
29+
}
30+
2731
const currentRuntimeVersion = this.$platformCommandHelper.getCurrentPlatformVersion(this.$devicePlatformsConstants.iOS, projectData);
2832
const canRefresh = semver.gte(
2933
semver.coerce(currentRuntimeVersion), IOSDeviceLiveSyncService.MIN_RUNTIME_VERSION_WITH_REFRESH_NOTIFICATION);

0 commit comments

Comments
 (0)