Back to previous App

I would like to know if a user can click on a button "Done, you can return to the previous app", which brings back to the application he used before mine came to the fore. Is there a way for my iOS to go in the background while returning the previous application to the front?


On an iPad, the user can achieve this effect by scanning horizontally with four fingers.

But this gesture is not a complete solution because :

- this gesture does not work on a pocket device,

- few users are aware of this gesture.


I want to programmatically return the previous application to the front.


Thank you for your support

I don't think you can do it programmatically, for privacy reason.


have a look here:

https://stackoverflow.com/questions/38710089/can-i-use-swift-to-list-all-apps-that-are-currently-running

Not what you are asking but FYI.....

If you open an application through openURL schema with:

[[UIApplication sharedApplication] openURL: ....

then there will be a "< app" button on the top.

Back to previous App
 
 
Q