Unable to notify for wap push msg
| Tue, 2006-01-24 15:56 | |
|
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::DoSomething(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); } |
|






Forum posts: 364
Forum posts: 65
But How to write a plug in for that ?
Any sorts of snippet or any eaxample if you have plz let me know.
I am stucked here bcoz of this
in wait for your reply
Thank you
Forum posts: 4
SI push messages are do saved at KMsvGlobalInBoxIndexEntryId. You should get notified in HandleSessionEventL, when a new wap push SI or SL message is crated in Inbox.
What mungbeans says is a different way of ctaching push messages at lower level with writing Push Content Handler ECom plugins, but it seems that you just want to get notification about messages created in Inbox.
I hope this helps!
Forum posts: 65
but it is not get notified for any wap push msgs while it gets notified for simple sms .
Have u tried with Wap push msgs?
if yse den let m eknow plz
waitin for your reply
Forum posts: 364
http://www.symbian.com/developer/techlib/v70sdocs/doc_source/reference/cpp/wappush-fmwk/wappush/plugins/index.html
Look at deriving from CContentHandlerBase
Forum posts: 65
I have gone through that also but unable to do this.
I am not finding out what to write in implimenatation of eECom plug in .The pure vitual base class on the CPushMesageHandler class is Handlemessagel.
So what should I write on this function.
And from where I should call this from application.
Plz help me out
Thanks
Forum posts: 4
Forum posts: 65
sdk_v1.2
Forum posts: 4
Forum posts: 65
I wll check and let you know ,
Thanks
Forum posts: 65
For SL or SI Wap msg I am able to get notfied since these msgs are coming to INBOX.
But unable to display the msgs while for simple SMS msgs I am able to display it.
So what should I do for displaying service msgs(WAP msgs) ?
Thanks
Forum posts: 4
If it does not help, try to find a similar wrapper class in the SDK for SI/SL push messages! Use this wrapper to gain information about such push messages (URL, message text, action value, expiration date, etc.)
Forum posts: 65
pushutils.lib file
Where should I find it?
Thanks