When my application redirects the user to safari (happens also with other redirects not only safari) using
UIApplication.shared.open(URL ..)
and then the user clicks the "Back to Application" button, the application starts instead of continuing from point to redirection.
I have a settings table, and redirection happens when you click on a cell. (imagine a cell with "a lot of applications from us")
I know that this is not the default behavior, so I skip what I cannot find through Google. Anyone who can point me to an article or have an idea? Thanks in advance.
Screenshot with Back to Application button

: , . , , , , ?
@MaximSysenko, /,
:
override public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section {
...
case 1:
if (indexPath.row == 0) {
} else if (indexPath.row == 1) {
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "permissions"), object: nil)
}
...
case 3:
else if (indexPath.row == 1) {
let url = URL(string: "itms://itunes.apple.com/us/developer/some-id")
UIApplication.shared.open(url!, options: [:], completionHandler: nil)
tableView.deselectRow(at: indexPath, animated: true)
}