How can I open my second App in a specific VC if the application is already running?

110 Views Asked by At

So I have 2 targets , I managed to open the SecondTarget from the FristTarget with:

        if UIApplication.shared.canOpenURL(aUrl!){
        if #available(iOS 10.0, *) {
            UIApplication.shared.open(aUrl!)
        } else {
            // Fallback on earlier versions
        }

I'm also navigating to a specific VC when the first time the SecondTarget opens because i now that a specific VC is called the first time and I did some modifications in there.

But i'm getting stuck when , let's say the SecondTarget is already running and I'm doing the specific task to open it from the FirstTarget...now it only swap to it since it was already open..not executing anymore the flow I wrote. It's also frustrating because the breakpoints aren't triggered in the SecondApp...Any ideas? thanks

0

There are 0 best solutions below