I’m currently writing automation tests for retrieving received OTP codes. I followed this method and it’s working fine. Basically, as a workaround for interacting with the native messaging app, which is different for each device manufacturer, a third party sms app is installed as part of the code.
The issue is, the code requires that I provide the device serial number (from adb devices) prior to execution. This becomes a problem when we want to run our tests on multiple devices in parallel. Is there a way for appium to retrieve the serial number from the device?