microsoft / cordova-simulate

Simulates your Apache Cordova application in the browser.
Other
214 stars 51 forks source link

[Feature] Add argument to prevent browser launch after simulating #442

Closed CBR900cc closed 1 year ago

CBR900cc commented 1 year ago

Description

Hello, I want to prevent open of browser when run "simulate android --target=chrome"

Steps to Reproduce

simply run: simulate android --target=chrome

Software versions

CBR900cc commented 1 year ago

I've temporaly solved by adding: cmd = 'cd' before: child_process.exec(cmd, opt, (err, stdout, stderr) => { in "C:/Users//AppData/Roaming/npm/node_modules/cordova-simulate/src/browsers/browse.js"

EzioLi01 commented 1 year ago

Hey @CBR900cc , thanks reaching us, team is out of office currently and we will look into this when we're back. Thank you!

EzioLi01 commented 1 year ago

Could you please share some information for your scenarios? Why we need to make browser not open?

EzioLi01 commented 1 year ago

Hello @CBR900cc , do you have chance looking into this?

CBR900cc commented 1 year ago

Could you please share some information for your scenarios? Why we need to make browser not open?

Hello @EzioLi01 I need that because during coding, I keep browser open with my default profile, and every time I run cmd command it launch new browser with a unknown profile and have to close new browser every time

EzioLi01 commented 1 year ago

Could you please share some information for your scenarios? Why we need to make browser not open?

Hello @EzioLi01 I need that because during coding, I keep browser open with my default profile, and every time I run cmd command it launch new browser with a unknown profile and have to close new browser every time

Make sense, thanks for the clarification. Will look into this, any progress will comment here.

EzioLi01 commented 1 year ago

Hey @CBR900cc, this feature is completed, we're adding showbrowser as an argument to handle this. It will be released on the next prod version, thank you!

CBR900cc commented 1 year ago

@EzioLi01 really good job, thanks for your effort