S
S
Stanislav Korolevskiy2017-10-18 09:26:44
iOS
Stanislav Korolevskiy, 2017-10-18 09:26:44

Is it possible to launch one application on click from another?

Conditionally, the application offers to check mail. It is necessary to launch the second application (mail) by clicking in the first application. And one more thing ... Is it possible to display a list of applications installed on the iphone in the application in order to select, for example, the same mail client, to work with it by default in the first application. Hope I didn't confuse too much. :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Globak, 2017-10-18
@maximglobak

You can open other applications by url scheme. It looks like this

guard let url = URL(string: "mail://") else { return }
if UIApplication.shared.canOpenURL(url) {
    UIApplication.shared.open(url, options: [:], completionHandler: nil)
}

But you can’t get a list of applications, but you can try to make a request for each url scheme from popular applications using the method
if the url can be opened, then add it to your list of applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question