A session is either terminated or not started (WebView App and Native App)

Hello

I am automating and Hybrid App (WebView) and when I switch to a Native App it shows me “A session is either terminated or not started” and stop the execution.

I am reading differents solutions but nothing works for me, The people talk about the context, other change the autoWebView capabilitie but i can not change that capabilitie to false in execution time.

Do anyone have any solution? It is possible work with a Hybrid App and Native App?

Thanks.