I want to port my application to Mac. My main application opens the visible browser window for UI and I need it to create multiple hidden browsers for background work. Can I use the "Helper" application as background web process? I've sent special parameter to helper app so it knows it is called ad background worker, it that case it makes CefInitialize, CreateBrowser, etc. but I cannot get it working.
First I'm trying to start it from console using
- Code: Select all
open -W -g -n "/path/myapp Helper.app" --args -myapp=1
but I get errorL LSOpenURLsWithRole() failed with error -10810 ..... I cannot find reasonable answer what could be wrong on google.
When I try to start it directly
- Code: Select all
/path/myapp Helper.app/Contents/MacOS/myapp Helper -myapp=1
empty windows is opened, and in console I'll get error browser_gpu_channel_host_factory.cc - Failed to launch GPU process.
Any idea what could be wrong or is this even possible? Thank you