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

Developer

Forums

Forums:

My code registers for notifications of an incoming SMS from the SMSNotifier like this:

 

returnCode = ISHELL_RegisterNotify(m_pShell, AEECLSID_MYAPP, AEECLSID_SMSNOTIFIER, (AEESMS_TYPE_TEXT << 16) | NMASK_SMS_TYPE)

 

Then if in the simulator I send a Brew-directed SMS to the app my event handler gets invoked with an event of

EVT_APP_MESSAGE_EX. So it is successfully receiving notification of the arrival of the SMS.

However both wParam and dwParam are 0 yet the documentation says dwParam contains the ID of the SMS.

If the documentation is correct, why am I successfully getting the notification event, but no other information?

EVT_APP_MESSAGE_EX:    Text message: dwParam = 32 bit unique message identifier that can be used with ISMS_ReceiveMsg to get ISMSMsg.
 
Note: dwParam is not a pointer to the message ID. the value "dwParam" is the actual message ID.
 
hence 0 means messageID id 0. if you send one more Brew Directed SMS in the same instace of the Simulator, you will notice that now the dwParam(message id) would be 1 i.e. will incriment.

EVT_APP_MESSAGE_EX:    Text message: dwParam = 32 bit unique message identifier that can be used with ISMS_ReceiveMsg to get ISMSMsg.
 
Note: dwParam is not a pointer to the message ID. the value "dwParam" is the actual message ID.
 
hence 0 means messageID id 0. if you send one more Brew Directed SMS in the same instace of the Simulator, you will notice that now the dwParam(message id) would be 1 i.e. will incriment.