How do I extract the text of a non BREW application-directed SMS message?

0
Posted

How do I extract the text of a non BREW application-directed SMS message?

0

To extract the text of a non BREW-app directed SMS, you should register for NMASK_TAPI_SMS_TEXT event notification. When a non BREW app-directed SMS is received, your application will receive EVT_NOTIFY event with dwParam pointing to the pNotify data structure. pNotify->pData is the AEESMSTextMsg. You do not need to call ExtractSMSText() on pNotify->pData as specified in the 2.0 SDK documentation. For example: smsText = (AEESMSTextMsg*) pNotify->pData; The text of the SMS message is in smsText->szText. In BREW 2.0 and prior, an app that has registered for NMASK_TAPI_SMS_TEXT notification will intercept the SMS, and the native UI may not be given a chance to process it. This is OEM dependent and has serious consequence – an application that prevents SMS from appearing in the phone Inbox will cause True BREW Testing. Please refer to Why does an SMS message sent to my handset fail to appear in the phone’s Inbox?” for more information. In 2.0.2 onwards, the native UI will *always* handle t

Related Questions