maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   qt mobility messaging problems (https://talk.maemo.org/showthread.php?t=84476)

GreatGonzo 2012-05-25 01:43

qt mobility messaging problems
 
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?

GreatGonzo 2012-05-30 23:42

Re: qt mobility messaging problems
 
Could somebody please confirm if sending SMS messages (including prompt delivery) works using Qt mobility under harmattan.

And if not what workaround there is.

nicolai 2012-05-31 23:26

Re: qt mobility messaging problems
 
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 2012-06-01 00:12

Re: qt mobility messaging problems
 
Turns out that this seems to be a carrier problem. The question still remains. What is different between qmessageservice and conversation....


All times are GMT. The time now is 21:47.

vBulletin® Version 3.8.8