Back to application button, starts through my application

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

enter image description here

: , . , , , , ?

@MaximSysenko, /,

:

override public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    switch indexPath.section {

...

        //appSpecific
    case 1:
        if (indexPath.row == 0) {

        } else if (indexPath.row == 1) {
            NotificationCenter.default.post(name: NSNotification.Name(rawValue: "permissions"), object: nil)
            //tableView.deselectRow(at: indexPath, animated: true)
        }

...

    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)
        }
+4
1

, Info.plist :

<key>UIApplicationExitsOnSuspend</key>

, , . "", .

+2

Source: https://habr.com/ru/post/1668744/


All Articles