Reply
Thread Tools
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#1
Hi,

I am working on an application which sends SMS messages to a service which then replies. I am using QMessageService.
When I look at these messages in conversation they are flagged as delivered and not sent as the ones send through Conversation itself.
They also do not seem to be delivered immediately and looking at the dbus-monitor, I seem to get a reply from the service center
Code:
         dict entry(
            string "sms-failure-cause"
            variant                uint32 0
         )
Sometimes the expected reply arrives with a long delay. I can force the reply to arrive immediately by sending another message via conversation. I then get the first reply and the second.
Has anybody seen this before?
__________________
Quick Widgets - http://wiki.maemo.org/Quick_Widgets
 
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#2
Could somebody please confirm if sending SMS messages (including prompt delivery) works using Qt mobility under harmattan.

And if not what workaround there is.
__________________
Quick Widgets - http://wiki.maemo.org/Quick_Widgets
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#3
This code works for me:
Code:
QMessage message;
message.setBody("message helo");
message.setParentAccountId(QMessageAccount::defaultAccount(QMessage::Sms));
message.setTo(QMessageAddress(QMessageAddress::Phone, "PHONENUMBER"));
qmessageservice->send(message);
And it gets send immediately. No need to send a message through
the conversion app.

By the way, I couldn't find a way to send InstantMessages (jabber for
example), as well. It seems QMessageManager doesn't even
know about any chat account.

Code:
QMessageManager* qma = new QMessageManager(this);
    foreach (const QMessageAccountId &id, qma->queryAccounts()) {
        qWarning() << "account " << id.toString();
    }
Only lists "ring/tel/ring" and "QMF_3"(thats the email account).

nicolai
 
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#4
Turns out that this seems to be a carrier problem. The question still remains. What is different between qmessageservice and conversation....
__________________
Quick Widgets - http://wiki.maemo.org/Quick_Widgets
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:32.