Skip to content

Commit f66e1e2

Browse files
authored
Merge pull request #2123 from NativeScript/raikov/fix-first-time-livesync
Fixed: Livesync not working when started for the first time on device
2 parents 48f011b + 08fa8d7 commit f66e1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ class IOSPlatformLiveSyncService extends PlatformLiveSyncServiceBase {
2929
let localToDevicePaths = this.$projectFilesManager.createLocalToDevicePaths(deviceAppData, projectFilesPath, null, this.liveSyncData.excludedProjectDirsAndFiles);
3030
let afterSyncAction: () => IFuture<void>;
3131

32+
this.transferFiles(deviceAppData, localToDevicePaths, this.liveSyncData.projectFilesPath, true).wait();
33+
3234
if(installed) {
3335
afterSyncAction = () => device.applicationManager.tryStartApplication(deviceAppData.appIdentifier);
3436
} else {
35-
this.transferFiles(deviceAppData, localToDevicePaths, this.liveSyncData.projectFilesPath, true).wait();
3637
afterSyncAction = () => this.refreshApplication(deviceAppData, localToDevicePaths);
3738
}
3839

0 commit comments

Comments
 (0)