iOS app redirection handling

Hi all,

I am trying to automate the native app which requires redirection to a container for which i don’t have control on.
My appium Java test script fails to once the native app goes into background. Any pointer ? solutions ? or build-in functions to handle such scenarios.