Hello World
Hello World

Reputation: 1

Open an app when another app is clicked

Is there any way on iOS to detect a click on an app icon, or know that an app is currently being used, and open a separate different app? Say I click on Notes and then it redirects and opens Evernote. Basically any arbitrary app is clicked and another app is opened instead. I was thinking it may have something to do with URL schemes. Im really new to iOS dev so forgive me.

Thank you!

Upvotes: 0

Views: 592

Answers (1)

nathan
nathan

Reputation: 9395

No. That would be really counterproductive and a security risk for users (it's pretty much the equivalent of phishing). If you come from Android maybe you are referring to default apps, but iOS doesn't allow third party default apps for now.

You can detect if a specific app is installed using canOpenURL(_:). See the official docs here.

Upvotes: 1

Related Questions