Receiving BREW SMS message notification | developer.brewmp.com Receiving BREW SMS message notification | developer.brewmp.com

Developer

Receiving BREW SMS message notification

Forums:

Hi,

I want to receive SMS message notification for my BREW application. API guide says that notification can be done through MIF editor. I looked under "advanced applet information", under "notification", what system do I choose, AEECLSID_TAPI should be chosen, right?

My TeleService ID is 4099, so the mask should be 0x40090004 for NMASK_TAPI_SMS_TS , right?

If I just want to receive all text messages, what mask do I use for NMASK_TAPI_SMS_TEXT? Is it just 0x00000002?

Then, , the application is notified through the EVT_NOTIFY event when a SMS message is received, right?

At last, I can extract text from SMS message ITAPI_ExtractSMSText(), right?

Finally, I need to send a SMS message to myself, is this doable? I can only find TAPI and GPS simulation in the emulator. I guess you use ITAPI_SendSMS(), right? Is this the right way to send a SMS to yourself? A code sample would be helpful. Thank you.

Anybody knows about this? I just need to verify if this is correct. Thank you.

Anybody knows about this? I just need to verify if this is correct. Thank you.

Hi,
I want to send a SMS message to my BREW application through TAPI emulation in the simulator. I give it a proper classID: 0x06060E for my application and in the text box I just write some message, and send, right?
In my application MIF, I added notification for 0x40990004 mask. And in the application, I added EVT_NOTIFY event, what info should I put in there in order to be notified a SMS BREW message is received (some code, please)? Because right now, I don't recieve any notification.
Could anybody walk me through a successful BREW SMS message notification and receiving process. Thank you. I'm new to BREW SMS.

Hi,
I want to send a SMS message to my BREW application through TAPI emulation in the simulator. I give it a proper classID: 0x06060E for my application and in the text box I just write some message, and send, right?
In my application MIF, I added notification for 0x40990004 mask. And in the application, I added EVT_NOTIFY event, what info should I put in there in order to be notified a SMS BREW message is received (some code, please)? Because right now, I don't recieve any notification.
Could anybody walk me through a successful BREW SMS message notification and receiving process. Thank you. I'm new to BREW SMS.

See online knowledge base, there is detailed information about SMS notification.

See online knowledge base, there is detailed information about SMS notification.

App-directed SMS messages trigger the EVT_APP_MESSAGE event. Consult the knowledgebase article for more information.

App-directed SMS messages trigger the EVT_APP_MESSAGE event. Consult the knowledgebase article for more information.

ruben wrote:See online knowledge base, there is detailed information about SMS notification.
I want to send a SMS message to my BREW application through TAPI emulation in the simulator. I give it a proper classID: 0x06060E for my application and in the text box I just write some message, and send, right?
In my application MIF, I added notification for 0x40990004 mask. And in the application, I added EVT_NOTIFY event, what info should I put in there in order to be notified a SMS BREW message is received (some code, please)? Because right now, I don't recieve any notification.
Could anybody walk me through a successful BREW SMS message notification and receiving process. Thank you. I'm new to BREW SMS. I followed all the documents and please don't answer by referring me to read more.

ruben wrote:See online knowledge base, there is detailed information about SMS notification.
I want to send a SMS message to my BREW application through TAPI emulation in the simulator. I give it a proper classID: 0x06060E for my application and in the text box I just write some message, and send, right?
In my application MIF, I added notification for 0x40990004 mask. And in the application, I added EVT_NOTIFY event, what info should I put in there in order to be notified a SMS BREW message is received (some code, please)? Because right now, I don't recieve any notification.
Could anybody walk me through a successful BREW SMS message notification and receiving process. Thank you. I'm new to BREW SMS. I followed all the documents and please don't answer by referring me to read more.

mohlendo wrote:App-directed SMS messages trigger the EVT_APP_MESSAGE event. Consult the knowledgebase article for more information.
Thank you. I just want to test sending BREW SMS message through the emulator, why doesn't it give me a notification? What else should I do?

mohlendo wrote:App-directed SMS messages trigger the EVT_APP_MESSAGE event. Consult the knowledgebase article for more information.
Thank you. I just want to test sending BREW SMS message through the emulator, why doesn't it give me a notification? What else should I do?

App-directed SMS messages don't trigger TAPI notification. Check for the EVT_APP_MESSAGE event. If you aren't getting it, you made a mistake in the class ID.

App-directed SMS messages don't trigger TAPI notification. Check for the EVT_APP_MESSAGE event. If you aren't getting it, you made a mistake in the class ID.

You are posting same question with multiple user names, not a very good practice.
To answer your questions:
1. Yes, you put the class ID and then text body of your SMS message.
2. SMS is delivered to your application via EVT_APP_MESSAGE, so add the event handler for that.

You are posting same question with multiple user names, not a very good practice.
To answer your questions:
1. Yes, you put the class ID and then text body of your SMS message.
2. SMS is delivered to your application via EVT_APP_MESSAGE, so add the event handler for that.

mohlendo wrote:App-directed SMS messages don't trigger TAPI notification. Check for the EVT_APP_MESSAGE event. If you aren't getting it, you made a mistake in the class ID.
So, since I set notification in MIF, I don't need to specify them using ISHELL_RegisterNotify() in the HandleEvent, right?
This is what I have in EVT_APP_MESSAGE:
case EVT_APP_MESSAGE:
ISHELL_StartApplet(pApp->m_Applet.m_pIShell,AEECLSID_CATMEDIA);
{
const char * text = (const char *)dwParam;
}
return TRUE;
Is this right, in order for EVT_APP_MESSAGE with dwParam pointing to the user character string causes the message to appear in the device’s screen?
I'm in the correct applet directory that shows my applet, when I send a SMS message, it says Appliation Error:
>The instruction at 0x0128cd85 referenced memory at 0x00000a30. The memory could not be "read".
What does this mean?
Do you have some working code, or could you make some change to mine? Thank you.

mohlendo wrote:App-directed SMS messages don't trigger TAPI notification. Check for the EVT_APP_MESSAGE event. If you aren't getting it, you made a mistake in the class ID.
So, since I set notification in MIF, I don't need to specify them using ISHELL_RegisterNotify() in the HandleEvent, right?
This is what I have in EVT_APP_MESSAGE:
case EVT_APP_MESSAGE:
ISHELL_StartApplet(pApp->m_Applet.m_pIShell,AEECLSID_CATMEDIA);
{
const char * text = (const char *)dwParam;
}
return TRUE;
Is this right, in order for EVT_APP_MESSAGE with dwParam pointing to the user character string causes the message to appear in the device’s screen?
I'm in the correct applet directory that shows my applet, when I send a SMS message, it says Appliation Error:
>The instruction at 0x0128cd85 referenced memory at 0x00000a30. The memory could not be "read".
What does this mean?
Do you have some working code, or could you make some change to mine? Thank you.

mzichao wrote:
Is this right, in order for EVT_APP_MESSAGE with dwParam pointing to the user character string causes the message to appear in the device’s screen?
No. For application directed SMS, it is the application's responsibility to do whatever it wants to.
Put a DBGPRINTF statement or break point under EVT_APP_MESSAGE case and see if you are receiving the SMS at all in the first place.

mzichao wrote:
Is this right, in order for EVT_APP_MESSAGE with dwParam pointing to the user character string causes the message to appear in the device’s screen?
No. For application directed SMS, it is the application's responsibility to do whatever it wants to.
Put a DBGPRINTF statement or break point under EVT_APP_MESSAGE case and see if you are receiving the SMS at all in the first place.