I have two drivers, one for my app and one for Chrome.
The flow is like so:
But what I actually want to do is this:
Quitting the driver (driver.quit()
) is obviously not an option, since this also kills the background process. Same as with (driver.close_app()
).
I was thinking about doing this via UI, by simply clicking the "Recent Button" and swiping up on my app, but how would I then get back the app?
My question: Is it possible to close the app without killing the background process, if so - how?
After asking in the Appium Forum the solution is as follows:
Put the app into background for an indefinite amount of time:
driver.background_app(-1)
and activate it once you need it again:
driver.activate_app("app.id")