We have a requirement where the application login involves in two factor authentication and the user has to copy the passcode send to Mobile DUO App and it should be an unattended automation. So Please anyone help me to know if there is any way to perform this automation
Not sure what you’re asking for exactly. I just checked DUO Mobile 4.70.0 (package=com.duosecurity.duomobile, activity=.account_list.AccountListActivity) on Android 14 with Mobile Automation Activities 24.10.1 and on a summary inspection it seems that it can be automated. There’s a catch: when Appium sends screenshots back, they’re black. I think this is due to a security feature of the app, so you can’t screenshot codes and other info, so in the MDM you’ll only see a black screen.
You can still interact with elements as you can see in the picture but blindly. You have to know in what screen you are and what you’re targeting.
The other hurdle I see is that you have to have the app and account pre-configured on a device that you can automate and that stays always the same. If you can achieve this, then creating an automation that authorizes the user or reads a code shouldn’t be too difficult.