How to I switch between apps from the same emulator using robot framework Appium library in mobile testing

I am using Robot framework with Appium Library for mobile app testing. I have a scenario where I have to copy past OTP from one app to another, like in a reset password scenario where OTP is sent to email and I have to copy OTP from email back to my app.

I tried Switch Application Keyword from appium Library. But it didnt work . I read from other forums that “Switch Application” Keyword is used to switch between two apps in different device and not in the same so I even tried using two emulators and installed my two apps in each device and try . It didnt work either. So please help!