How to make a call or send a sms on iOS: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine section headers) |
(Cleanup after migration) |
||
Line 1: | Line 1: | ||
= How to start a call from your application: = | == How to start a call from your application: == | ||
On iOS, there are two possibilities to start a phone call: | On iOS, there are two possibilities to start a phone call: | ||
1. Start a call directly | |||
</code>QDesktopServices::openUrl(QUrl(" | <code>QDesktopServices::openUrl(QUrl("tel://+123456789"));</code> | ||
2. Prompt the user before making the call | |||
<code>QDesktopServices::openUrl(QUrl("telprompt://+123456789"));</code> | |||
== How to start a FaceTime call: == | |||
<code>QDesktopServices::openUrl(QUrl("facetime://+123456789"));</code> | |||
= How to | == How to send a SMS: == | ||
<code>QDesktopServices::openUrl(QUrl(" | <code>QDesktopServices::openUrl(QUrl("sms://+123456789"));</code> | ||
Setting the SMS content through this method cannot be done. This would require to use iOS API directly through Objective-C++ | Setting the SMS content through this method cannot be done. This would require to use iOS API directly through Objective-C++ |
Revision as of 23:08, 7 March 2015
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++