Open CharlanSofist opened 1 month ago
Hi @CharlanSofist,
Can you try below command?
appium server -ka 800 --use-plugins=device-farm, --plugin-device-farm-platform=both
--plugin-device-farm-live-streaming: For this feature, you can add your capabilities df:liveVideo: true parameters ?
Hi @CharlanSofist,
Can you try below command?
appium server -ka 800 --use-plugins=device-farm, --plugin-device-farm-platform=both
--plugin-device-farm-live-streaming: For this feature, you can add your capabilities df:liveVideo: true parameters ?
Hi @erdncyz with your command its brings all devices including those not booted, i need it list just booted ios devices.
Hi,
By booted device do you mean real devices?
@erdncyz no, i mean devices emulator started
You can delete in Xcode
@erdncyz I can do this, but this doesn't solve my problem, for an example if I start the device farm with an Android emulator started it will always show the existing IOS devices even if it not start, it generates a problem when I request devices free on farm, and it returns as devices.
Hi @CharlanSofist
I understand, the situation with iOS devices is actually related to Xcode, so as long as Xcode is installed, iOS devices always appear as available. It doesn't matter whether the devices are started or not; they are listed simply because Xcode is installed. This is a feature of Xcode's device management.
For Android devices, the situation is different; you need to manually start physical or virtual devices (emulators) through Android Studio. Devices that are not started are not listed in the device farm.
To resolve or better manage this issue, you can try the following:
If you don't want iOS devices to appear in the list all the time, even if Xcode is installed, you can delete the ones not being used from the simulator.
@erdncyz Actually what @CharlanSofist is asking is only booted simulators should be picked by device-farm when the server is started with the flag.
@saikrishna321 yes thank you for your explanation but the simulator that Xcode has installed sees the devices as connected, so I think it sees them as active in the device farm.
@erdncyz Simulators have two stats, booted and shutdown.
@CharlanSofist Just looked at the code. If you have atleast one booted simulator then the plugin will only pick the booted simulators else it picks all the simulators.
@saikrishna321 Exactly, maybe my explanation wasn't very clear, but I can see you understood.
@CharlanSofist Just looked at the code. If you have atleast one booted simulator then the plugin will only pick the booted simulators else it picks all the simulators.
Yes it happens, but if I don't start any simulator its return all, that is the problem.
Describe the bug
When i start appium with plugin device farm with this comand
appium server -ka 800 --use-plugins=device-farm --plugin-device-farm-platform=both --plugin-device-farm-booted-simulators --plugin-device-farm-live-streaming
and i dont start any simulator, the device farm list a non booted IOS devices.Link to Appium logs https://gist.github.com/CharlanSofist/e2b91f7feeba55de1a5603802009f49b
Environment