×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    89

    m-notification-ind (MMS size)

    Hello guys,
    I have tested mms notification application on my nokia 6600 device and it is working fine but i have couple of doubts regarding mms notification.

    1. i am still not able figure out what is MMS size header in notification msg? is it size of .MMS file? suppose my .MMS file size is 5086 bytes when what should be the value of this header?
    2. is there is limit in context to device? i mean can i send any mobile image on any device as MMS? this is coz i didnt get MMS on my nokia 6610 while same MMS i am getting on nokia 6600.

    waiting for the reply
    jiggy
    jig2nesh@hotmail.com

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: m-notification-ind (MMS size)

    Hi,

    Hope this is an helpful link to u.

    http://www.ihub.com/MMS%20Messages.htm

    Wang

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    128

    Re: m-notification-ind (MMS size)

    Hi guys,

    Below you can find the nokia example of a messeging observer. You can see
    that it is checked when a MMS Notification entry is created (msvEntry.iMtm
    == KUidMsgMMSNotification). However, though I got some MMS while running the
    application, no MMS notification messages where printed.

    Have anybody gotten any entry of type KUidMsgMMSNotification?

    Thanks in advance,


    //---------------------------------------
    // CMsgObserverAppUi::HandleSessionEventL
    //---------------------------------------

    void CMsgObserverAppUi::HandleSessionEventL(TMsvSessionEvent aEvent, TAny*
    aArg1, TAny* aArg2, TAny* /*aArg3*/)
    {
    switch (aEvent)
    {
    case EMsvServerReady:
    // Initialise iMsvEntry
    if (!iMsvEntry)
    {
    iMsvEntry = CMsvEntry::NewL(*iMsvSession,
    KMsvGlobalInBoxIndexEntryId, TMsvSelectionOrdering());
    }
    break;

    case EMsvEntriesCreated:
    {
    // Only look for changes in the Inbox
    CMsvEntrySelection* entries =
    static_cast<CMsvEntrySelection*>(aArg1);
    CMsvEntry* entry;
    entry = iMsvSession->GetEntryL( entries->At(0) );
    CleanupStack::PushL(entry);
    TMsvEntry msvEntry(entry->Entry());

    if(msvEntry.iMtm == KUidMsgMMSNotification)
    {
    iAppContainer->SetTextL(_L("MMS Notification"));
    }
    else if (msvEntry.iMtm ==KUidMsgTypeSMS )
    {
    iAppContainer->SetTextL(_L("SMS"));
    }
    else if (msvEntry.iMtm ==KUidMsgTypeMultimedia)
    {
    TBuf<50> test;
    test.Append(_L("MMS "));
    TInt testNum = *(static_cast<TMsvId*>(aArg2));
    test.AppendNum(testNum);
    iAppContainer->SetTextL(test);
    }
    else
    {
    TBuf<100> test;
    TInt testNumber = msvEntry.iMtm.iUid;
    test.Num(testNumber);
    iAppContainer->SetTextL(test);
    }
    CleanupStack::PopAndDestroy();

    // if (*(static_cast<TMsvId*>(aArg2)) == KObservedFolderId)
    // {
    iAppContainer->SetTextL(_L("Entry created"));
    //CMsvEntrySelection* entries =
    static_cast<CMsvEntrySelection*>(aArg1);
    iNewMessageId = entries->At(0);
    // }
    break;
    }
    case EMsvEntriesChanged:
    {
    // Only look for changes in the Inbox
    CMsvEntrySelection* entries =
    static_cast<CMsvEntrySelection*>(aArg1);
    //CMsvEntry* entry;
    //entry = iMsvSession->GetEntryL( entries->At(0) );
    //CleanupStack::PushL(entry);
    iMtmBase->SwitchCurrentEntryL(entries->At(0));
    iMtmBase->LoadMessageL();
    TMsvEntry msvEntry(iMtmBase->Entry().Entry());

    if(msvEntry.iMtm == KUidMsgMMSNotification)
    {
    iAppContainer->SetTextL(_L("MMS Notification"));
    }
    else if (msvEntry.iMtm ==KUidMsgTypeSMS )
    {
    iAppContainer->SetTextL(_L("SMS"));
    }
    else if (msvEntry.iMtm ==KUidMsgTypeMultimedia)
    {
    if (iNewMessageId == entries->At(0))
    {
    TBuf<50> test;
    TInt testNum = *(static_cast<TMsvId*>(aArg2));
    test.Num(testNum);
    test.Append(_L(" MMS"));
    iAppContainer->SetTextL(test);
    }
    else
    {
    iAppContainer->SetTextL(_L("It is not the same entry"));
    }
    }
    else
    {
    TBuf<100> test;
    TInt testNumber = msvEntry.iMtm.iUid;
    test.Num(testNumber);
    iAppContainer->SetTextL(test);
    }
    CleanupStack::PopAndDestroy();

    // Only look for changes in the Inbox
    // if (*(static_cast<TMsvId*>(aArg2)) == KObservedFolderId)
    {
    iAppContainer->SetTextL(_L("Entry changed"));
    CMsvEntrySelection* entries =
    static_cast<CMsvEntrySelection*>(aArg1);
    // if (iNewMessageId == entries->At(0))
    {
    // It's the same message we received the
    EMsvEntriesCreated event for

    // Set entry context to the new message
    iMsvEntry->SetEntryL(iNewMessageId);

    // Open the store, read-only
    CMsvStore* store = iMsvEntry->ReadStoreL();
    CleanupStack::PushL(store);

    // Get body text and send it to the container
    if (store->HasBodyTextL())
    {
    CRichText* richText = CRichText::NewL(
    iEikonEnv->SystemParaFormatLayerL(),
    iEikonEnv->SystemCharFormatLayerL());
    CleanupStack::PushL(richText);
    store->RestoreBodyTextL(*richText);
    const TInt length = richText->DocumentLength();
    iAppContainer->SetTextL(richText->Read(0, length));
    CleanupStack::PopAndDestroy(richText);
    }
    else
    {
    iAppContainer->SetTextL(KNoBodyText);
    }
    CleanupStack::PopAndDestroy(store);
    }
    }
    break;
    }
    default:
    break;
    }
    }

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    Smile Re: m-notification-ind (MMS size)

    please help him how to receive the m-notification-id from phone.
    i have no idea.i just know the "m-notification-id" is an ota sms.
    if i can receive the sms by AT command.Please advise.

Similar Threads

  1. Recommended Sizes for MMS Image, Text and Layout
    By sguthery in forum General Messaging
    Replies: 3
    Last Post: 2003-08-22, 09:10
  2. 7210 MMS vs. 7650 MMS ...
    By poncha in forum General Messaging
    Replies: 1
    Last Post: 2002-12-19, 11:07
  3. notification MMS
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-11-25, 04:25
  4. MMS 30K message size limits
    By stevejarrett in forum General Messaging
    Replies: 1
    Last Post: 2002-05-30, 06:26
  5. So the MMS File SIze is the Size of What?
    By rmsj in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×