
In iOS development, integrated apps access means allowing your app to open and interact with built-in iOS applications such as:
In iOS development, integrated apps access means allowing your app to open and interact with built-in iOS applications such as:
π This is done using URL Schemes and system frameworks like UIKit.
A special type of URL used to open system apps.
Examples:
mailto: β Emailhttps:// β Safarisms: β MessagesUsed to open external apps from your app:
UIApplication.shared.open(URL)
mailto:example@gmail.com
let email = "test@gmail.com"
let subject = "Hello"
let body = "This is a test email"
let emailString = "mailto:\(email)?subject=\(subject)&body=\(body)"
let url = URL(string: emailString)!
UIApplication.shared.open(url)
let url = URL(string: "https://www.google.com")!
UIApplication.shared.open(url)
sms:1234567890
let phoneNumber = "1234567890"
let message = "Hello from my app"
let smsString = "sms:\(phoneNumber)&body=\(message)"
let url = URL(string: smsString)!
UIApplication.shared.open(url)
iOS App
β
URL Scheme (mailto / https / sms)
β
UIApplication.shared.open()
β
System App Opens (Mail / Safari / Messages)
π User taps button β system app opens automatically
UIApplication.shared.open()https://https:// in Safari linksif UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
}
UIApplication.shared.open()?iOS apps can open:
mailto:https:sms:Uses UIApplication.shared.open()
URL schemes connect apps
Works best on real devices
Useful for communication apps
Open this section to view and download past papers
Click on Show Past Papers to load available exam papers.