Unable to notify for wap push msg

Login to reply to this topic.
Tue, 2006-01-24 15:56
Joined: 2005-04-29
Forum posts: 65
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);
 
   }

Tue, 2006-01-24 21:03
Joined: 2004-07-10
Forum posts: 364
Re: Unable to notify for wap push msg
You can write a wap push plugin to receive wap push messages.
Wed, 2006-01-25 05:56
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
Thanks
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
Wed, 2006-01-25 10:44
Joined: 2006-01-25
Forum posts: 4
Re: Unable to notify for wap push msg
Hello,

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!
Wed, 2006-01-25 11:58
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
ya it do saved in inbox

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
Wed, 2006-01-25 20:34
Joined: 2004-07-10
Forum posts: 364
Re: Unable to notify for wap push msg
Fri, 2006-01-27 06:27
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
Thanks for th eresponse
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
Mon, 2006-01-30 12:25
Joined: 2006-01-25
Forum posts: 4
Re: Unable to notify for wap push msg
Which Series 60 version you are using pls.?
Tue, 2006-01-31 15:29
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
os version series60_v.6.1
sdk_v1.2
Tue, 2006-01-31 17:17
Joined: 2006-01-25
Forum posts: 4
Re: Unable to notify for wap push msg
Does HandleSessionEventL gets called at all for wap push messages? If yes, please observe not only the inbox, but other entries too!
Wed, 2006-02-01 14:55
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
Thanks

I wll check and let you know ,
Thanks
Thu, 2006-02-02 08:12
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg

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
Thu, 2006-02-02 16:57
Joined: 2006-01-25
Forum posts: 4
Re: Unable to notify for wap push msg
Please try creating an CSIPushMsgEntry object and using the base class' RetrieveL method, and the get the push message text with the Text() method!

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.)
Sat, 2006-02-04 08:45
Joined: 2005-04-29
Forum posts: 65
Re: Unable to notify for wap push msg
I was trying with ur suggesstions but i didnt find the
pushutils.lib file
Where should I find it?

Thanks
               
  • Login to reply to this topic.