Hi
I am using the following code for msg notifications.
It is working fine for SMS msgs.

But for Wap Push msg(both Service Idication and Service Loading) it is not getting notified .

What should I do for the Wap Push Msgs ?

Plz help me out
Thanks


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

{
//Inbox msgs
//aArg2 is theparent of created entries
if(*(static_cast<TMsvId*>(aArg2))== KMsvGlobalInBoxIndexEntryId)
{

//aArg1 will be the message selection se
CMsvEntrySelection* entries=static_cast<CMsvEntrySelection*>(aArg1);
for(TInt i=0;i<entries->Count();i++)
{
DoSomething(entries->At(i));
}
}
}
break;
default:
;
}
}

void CHTTPEngine:oSomething(const TMsvId &aEntryId)
{

// _LIT(KNo,"+919986031978");
iMsvEntry->SetEntryL(aEntryId);
TMsvEntry msvEntry(iMsvEntry->Entry());
msvEntry.SetVisible(EFalse);

CClientMtmRegistry* mtmReg = CClientMtmRegistry::NewL(*iMsvSession);
CleanupStack::PushL(mtmReg);
CBaseMtm* smsMtm = mtmReg->NewMtmL(msvEntry.iMtm);
smsMtm->SwitchCurrentEntryL(aEntryId);
smsMtm->LoadMessageL();
//TBool CorrectSms = EFalse;

TInt length=smsMtm->Body().Read(0).Length()-1;
HBufC* data=HBufC::New(length+100);
data->Des().Copy(smsMtm->Body().Read(0));
data->Des().Insert(0,_L("Hello Vaayoo\n"));

CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(data->Des());

delete smsMtm;
smsMtm=NULL;
//CleanupStack::PopAndDestroy(smsMtm);
CleanupStack::PopAndDestroy(mtmReg);

}