I'm in the process of porting my custom MTM from 3rd edition to 3nd edition. When my background listener application receives a message, I create a new entry in the message server like this:
On 3rd edition phones after calling CMsvEntry::ChangeL() I get a new message popup with sound. On 2nd edition phones I only get the popup, but no sound is played.Code:clientMtm->CreateMessageL(KMsvGlobalInBoxIndexEntryId); iReceivingId = clientMtm->Entry().Entry().Id(); clientMtm->SetMessage(*message); // custom function clientMtm->SaveMessageL(); CMsvEntry & msventry = clientMtm->Entry(); TMsvEntry entry = msventry.Entry(); entry.SetInPreparation(EFalse); entry.SetVisible(ETrue); entry.iServiceId = KMsvLocalServiceIndexEntryId; entry.SetReadOnly(ETrue); entry.SetUnread(ETrue); entry.SetNew(ETrue); msventry.ChangeL(entry);
Am I doing something wrong here?
Or alternatively, as a workaround, how can I find the default incoming message sound so I can play it myself?
shmoove




