Skip to content

Commit 7199894

Browse files
Merge pull request #1176 from NativeScript/vladimirov/fix-run-on-multiple-devices
Fix run on multiple devices
2 parents cb055ae + 672be49 commit 7199894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/platform-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ export class PlatformService implements IPlatformService {
348348
public deployOnDevice(platform: string, buildConfig?: IBuildConfig): IFuture<void> {
349349
return (() => {
350350
this.installOnDevice(platform, buildConfig).wait();
351-
this.$commandsService.tryExecuteCommand("device", ["run", this.$projectData.projectId]).wait();
351+
let action = (device: Mobile.IDevice) => device.applicationManager.startApplication(this.$projectData.projectId);
352+
this.$devicesService.execute(action).wait();
352353
}).future<void>()();
353354
}
354355

0 commit comments

Comments
 (0)