Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

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

- Is AEECLSID_CHOME_APP the classid of the same Applet which runs the code - ISHELL_RegisterNotify() & wants to receive notification?
- try adding notification to MIF file?
- where do u run this code, if simulator - which simulator?

- Is AEECLSID_CHOME_APP the classid of the same Applet which runs the code - ISHELL_RegisterNotify() & wants to receive notification?
- try adding notification to MIF file?
- where do u run this code, if simulator - which simulator?

Yes its in the same applet the class id AEECLSID_CHOME_APP exist..
how do we add the notification in MIF File?
 
I run it on the Brew Develepoment Kit.
 

Yes its in the same applet the class id AEECLSID_CHOME_APP exist..
how do we add the notification in MIF File?
 
I run it on the Brew Develepoment Kit.
 

wat is Brew Developement Kit? if SDK which Platform & simulator?this is how u can add via CIF Code. see Notifier section below:-include "Ccomm.h"

AEEPRIVID_PLNetwork = 0x0002 --Declare

-- Applet Name

ModRsc {

id = 20, -- Applet base resource id

type = 1, --RESTYPE_ENCSTRING (see AEEResType.h)

data = UTF16_EncString("comm")

Applet {

appletid = AEECLSID_CCOMM,

resbaseid = 20, -- Applet base resource id

applethostid = 0,

type = 0,

privs = {

AEEPRIVID_PLNetwork

,

Notifier {

clstype =0x0100500A,

clsnotify = AEECLSID_CCOMM,

mask =0x00010001,

wat is Brew Developement Kit? if SDK which Platform & simulator?this is how u can add via CIF Code. see Notifier section below:-include "Ccomm.h"

AEEPRIVID_PLNetwork = 0x0002 --Declare

-- Applet Name

ModRsc {

id = 20, -- Applet base resource id

type = 1, --RESTYPE_ENCSTRING (see AEEResType.h)

data = UTF16_EncString("comm")

Applet {

appletid = AEECLSID_CCOMM,

resbaseid = 20, -- Applet base resource id

applethostid = 0,

type = 0,

privs = {

AEEPRIVID_PLNetwork

,

Notifier {

clstype =0x0100500A,

clsnotify = AEECLSID_CCOMM,

mask =0x00010001,