Exiting from deep linked app doesn't go back to calling app

I have an app that can be called from a website. I’m using the cordova-deeplink plugin. When the URL “myapp://path” is called, it opens my app and sends in the data. When the user is done and clicks back, I call navController.pop() and have also tried navController.popAll() in both cases, my app exits and the user doesn’t continue. I’ve also tried using the Background plugin and calling background.moveToBackground() and I get the same result.

How can I make the app return to whatever app that called my app?

I figured it out, I was moving app to background instead of activating the backbutton event