How to make a call or send a sms on iOS
Jump to navigation
Jump to search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine. Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean. |
h1. How to start a call from your application:
On iOS, there are two possibilities to start a phone call:
- Start a call directly
QDesktopServices::openUrl(QUrl("tel://+123456789"));<code>
# Prompt the user before making the call
QDesktopServices::openUrl(QUrl("telprompt://+123456789"));
= How to start a FaceTime call:
QDesktopServices::openUrl(QUrl("facetime://+123456789"));<code> =
= 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++