Not Able to Receive SMS Event in HandleEvent Function? | developer.brewmp.com Not Able to Receive SMS Event in HandleEvent Function? | developer.brewmp.com

Developer

Not Able to Receive SMS Event in HandleEvent Function?

Forums:

 

Hi

Below is the code snippet of wht i am doing

 

I Have added this registry in InitApp() function

ISHELL_RegisterNotify(pMe->piShell, AEECLSID_CHOME_APP, AEECLSID_SMSNOTIFIER,(AEESMS_TYPE_TEXT << 16) | NMASK_SMS_TYPE);

 

I have added this code in the handle Event function

 

case EVT_NOTIFY:      {         // Cast dwParam as an AEENotify structure         AEENotify *temp = (AEENotify *) dwParam;               DBGPRINTF("evt_notify from %u...", (uint32) (temp->cls));                  // Check for proper mask and type of notify event         if (AEECLSID_SMSNOTIFIER == temp->cls &&            ( (((AEESMS_TYPE_TEXT << 16)| NMASK_SMS_TYPE) == temp->dwMask) ||              (((AEESMS_TYPE_EMS << 16) | NMASK_SMS_TYPE) == temp->dwMask) ))   {            DBGPRINTF("you've got a message!");            c_samplesms_ReceiveSMSMessage(pMe, (uint32) temp->pData);            return(TRUE);            }  

 

Still i am not able to receive the Sms Notification

Please help me on this Issue?

 

 

 

Thanks & Regards

 Pradeep