Yes, that's the way to go. In Harmattan QML, there were:

 Qt.openUrlExternally("tel:012345xxxxx") for calls, and
 Qt.openUrlExternally("sms:01234567444" + "?body=" + "bodytext") for SMSs.

The latter did not work for me so I had to use Harmattan c++ Qt Messaging:

 QMessage sms;
 sms.setType(QMessage::Sms);
 sms.setBody(message);
 iMessageService.compose(sms);

All these would open the default phone call or text messaging application
for the user to do the final decision.

I'm just wondering if these or similar tools will be made available on
SailfishOS. I haven't seen any yet.

Any observations? Will SMS messaging tools, along the lines above, be
available for Sailfish app development?

Cheers,
Seppo



2013/11/13 Jonni Rainisto <jonni.raini...@jolla.com>

>  Afaik, if you try to send sms, it opens default messaging application
> where you can enter the sms. And same for outgoing phonecalls, opens phone
> application where you can make a call.
>
> Reasoning behind it is that as those call create a phone bill to end user,
> then applications are not allowed to secretly bypass default applications.
> But dont take my word on it, its just AFAIK on store QA process.
>
> But ofcourse if you enable developer mode you can do what ever you want.
> I'm not familiar with that side of middleware, so someone else can comment
> more.
>
> re, Jonni
>
>  ------------------------------
> *From:* devel-boun...@lists.sailfishos.org [
> devel-boun...@lists.sailfishos.org] on behalf of Seppo Tiainen [
> seppo.tiai...@gmail.com]
> *Sent:* Wednesday, November 13, 2013 8:19 PM
> *To:* devel@lists.sailfishos.org
> *Subject:* [SailfishDevel] Status of Sailfish SMS?
>
>   Hi,
>
> Does anybody know about a possible module and its status in Sailfish/Qt-5
> that corresponds to Harmattan Qt Mobility Messaging so that it would be
> possible to send and receive SMSs (which is essential in my app) through
> Qt/QML on the Jolla phone?
>
>  Thanks,
> Seppo
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to