How to make a call or send a sms on iOS

From Qt Wiki
Revision as of 16:03, 25 November 2016 by EdwardWelbourne (talk | contribs) (Gather iOS pages into a category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


How to start a call from your application:

On iOS, there are two possibilities to start a phone call:

1. Start a call directly

QDesktopServices::openUrl(QUrl("tel://+123456789"));

2. Prompt the user before making the call

QDesktopServices::openUrl(QUrl("telprompt://+123456789"));

How to start a FaceTime call:

QDesktopServices::openUrl(QUrl("facetime://+123456789"));

How to send a SMS:

QDesktopServices::openUrl(QUrl("sms://+123456789"));


Setting the SMS content through this method cannot be done. This would require to use iOS API directly through Objective-C++