Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtMobility::QMessageService sending mms failed no error Symbian
Forum Updated to NodeBB v4.3 + New Features

QtMobility::QMessageService sending mms failed no error Symbian

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 3 Posters 6.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kkrzewniak
    wrote on last edited by
    #1

    Hi

    I am having some problems using QtMobility::QMessageService. I am able to compose and sand a mms but if the user specifies a invalid phone number or has some network issues the message fails to sand but I get no error from the QtMobility::QMessageService
    instance. The funny thing is that the QtMobility::QMessageService instance emits a state changed signal with the FinishedState instantaneously when according to the documentation this should only happen on WindowsMobile and MeeGo.

    @
    QtMobility::QMessage message = composeMsg();
    if(messageService->send(message))
    {
    ui->editor->startWaiting();
    }
    else
    ui->editor->showError();
    @

    @void MainWindow::messageStateChanged(QMessageService::State state)
    {
    if(state == QtMobility::QMessageService::FinishedState)
    {
    if(messageService->error() == QtMobility::QMessageManager::NoError)
    {
    ui->editor->noError();
    //.....-
    }
    else
    ui->editor->showError();
    }
    }@

    Me, Grimlock, not "nice dino". ME BASH BRAINS!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      milot.shala
      wrote on last edited by
      #2

      I have the same problem and I cannot figure out how to solve it. I did a workaround and used compose() function instead of send() which opens a new message composer window and let the user modify the message and hit send for actually sending it.

      If someone solves the issue, please let us know :)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Just a guess: Did you add the required capabilities to your application and used a appropriate signing method for those capabilities?

        Most of these issues come down to capabilities on Symbian. We are working to make those issues more easy to spot.

        PS: compose() does not need the capabilities since the your application is not sending the message and the default sms sending application does have the required capabilities. So using compose() is the way to go if you can not get the required capabilities yourself.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          milot.shala
          wrote on last edited by
          #4

          Tobias,

          Here are the capabilities that I used:

          @ TARGET.CAPABILITIES = LocalServices ReadUserData WriteUserData NetworkServices UserEnvironment Location TrustedUI ReadDeviceData
          @

          As far as I've read on the documentation these are the capabilities needed for the messaging api.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kkrzewniak
            wrote on last edited by
            #5

            @TARGET.CAPABILITY += NetworkServices
            ReadUserData
            WriteUserData
            UserEnvironment
            LocalServices@
            Those are the ones I use in my project I also tried adding Read/WriteDeviceData and using openSigned, but the issue was still there. I will give it a second try but can You please tell me how to get on-device debugging with the package I get from OpenSigned? And thank You Tobias for trying to help us solve our issue. It's also nice to know that I'm not the only one having those problems. Unfortunately compose will not work for me as I need to provide a fully custom editing widget.

            Me, Grimlock, not "nice dino". ME BASH BRAINS!

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              Sorry, I am out of my depth now:-) I only ever program demo apps for Symbian to test Qt Creator integration with:-) I'll try to find a coworker tomorrow who knows the platform better than me.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                milot.shala
                wrote on last edited by
                #7

                Thank you Tobias for your help, it can be also a bug, in which case we should report it, but lets wait for someone with better experience on the platform.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  OK, found someone:-)

                  QtMobility messaging is said to require: LocalServices ReadUserData WriteUserData NetworkServices UserEnvironment ReadDeviceData WriteDeviceData. The Read/WriteDeviceData ones seem to be missing from your list. Could you try with all those capabilities?

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kkrzewniak
                    wrote on last edited by
                    #9

                    I tried adding them but I still get an instant FinishedState form QMessageService. I think it assumes it has finished once it puts the message in the outbox.

                    Me, Grimlock, not "nice dino". ME BASH BRAINS!

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kkrzewniak
                      wrote on last edited by
                      #10

                      Well I found a workaround by checking the sentbox for new messages and timingout aftere about 20[s]. It works but I know this is not an elegant nor the best solution.

                      Me, Grimlock, not "nice dino". ME BASH BRAINS!

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kkrzewniak
                        wrote on last edited by
                        #11

                        Unfortunatly my workaround leads me to having some problems with message counting. It seems that if I call QMessageMannager::queryMessages or QMessageService::countMessages somewhere in the code i get an error when I exit the application.
                        @Process 630, thread 631 stopped at 0x89ed4c: A code abort exception has occurred@

                        Me, Grimlock, not "nice dino". ME BASH BRAINS!

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          milot.shala
                          wrote on last edited by
                          #12

                          Still after adding the required capabilities, the sent function doesn't send the SMS message... is anything else we can try?

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            kkrzewniak
                            wrote on last edited by
                            #13

                            [quote author="Milot Shala" date="1290033219"]Still after adding the required capabilities, the sent function doesn't send the SMS message... is anything else we can try?[/quote]

                            O so You are having a different issue than me. Send works for my I just need to keep track if the message was relay sent and not just put in the outbox.--

                            Me, Grimlock, not "nice dino". ME BASH BRAINS!

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved