More than one Appium session for iOS execution

Hi,

For specific reasons, I want to have 2 different Appium sessions, one for native app and one for Safari mobile browser

So far, 2 different Appium sessions are created successfully with 2 different driver variables. However, after Safari mobile session execution, I can’t seem to re-use the native app session from its driver variable due to this error:

An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up

Do you have any ideas about this? Thanks