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

Developer

Forums

How can my flash application can receive notification on receiving SMS?

Hi jason,
I have gone through the document which u have given the link.I found that getUrl() function can send the sms.But if there is any incoming messege how can our flash application will be notified and how to retrive that messege -this information is not giving.
Can u share some example for this purpose..
Thanks

Hi jason,
I have gone through the document which u have given the link.I found that getUrl() function can send the sms.But if there is any incoming messege how can our flash application will be notified and how to retrive that messege -this information is not giving.
Can u share some example for this purpose..
Thanks

In the actionscript language reference document
ApplicationMessaging.receiveApplicationSMS
via which you can register your handler function which would get called when SMS arrives.

In the actionscript language reference document
ApplicationMessaging.receiveApplicationSMS
via which you can register your handler function which would get called when SMS arrives.

Thanks for your reply.
how can i send a adobe mobile client directed messege in the emulator.Is it different from the normal sms.

Thanks for your reply.
how can i send a adobe mobile client directed messege in the emulator.Is it different from the normal sms.

In your BREW executable/application you instantiate the IFlashPlayer. You send SMS targating your exe/application/mod. In your eventhandler, pass the events to the IFLASHPlayer (specifically for EVT_APP_MESSAGE)

In your BREW executable/application you instantiate the IFlashPlayer. You send SMS targating your exe/application/mod. In your eventhandler, pass the events to the IFLASHPlayer (specifically for EVT_APP_MESSAGE)

Hi Ruben,
Thanks for your reply.I understand What you want to say.But In my application i am not using brew.Only I have use flash.So i think my application will not got the EVT_APP_MESSAGE messege and no need to instantiate the IFlashPlayer.From the api reference i came to know that ApplicationMessaging.receiveApplicationSMS() api will be notified when the AMC directed sms will arrive .
My Question is that How can i send any AMC directed sms in the emulator.
Thanks.

Hi Ruben,
Thanks for your reply.I understand What you want to say.But In my application i am not using brew.Only I have use flash.So i think my application will not got the EVT_APP_MESSAGE messege and no need to instantiate the IFlashPlayer.From the api reference i came to know that ApplicationMessaging.receiveApplicationSMS() api will be notified when the AMC directed sms will arrive .
My Question is that How can i send any AMC directed sms in the emulator.
Thanks.

Ok, if you are using only flash, then it would be much easy. You send SMS to the application class ID that could be found in the MIF file when you publish flash application for BREW.

Ok, if you are using only flash, then it would be much easy. You send SMS to the application class ID that could be found in the MIF file when you publish flash application for BREW.