How to switch between two application in iOS without closing the existing session

How do I switch between Message and Email Application(Gmail).
my requirements are below:

Launch Gmail (using Start Application Keyword) do some stuff,
I need to enter OTP in gmail but OTP came as SMS
Now I have used Start existing application and performed the required task.

I would like to switch back to gmail without closing the existing session in iOS

thanks
Satish