Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
aykarthik
Posts: 187
Registered: ‎08-13-2008
My Device: Not Specified

how to listen the sms

Hi Guys,

 

Actaully i have to listen sms from my application. how can do?

 

Thanks,

 

 

Retired
whoang
Posts: 71
Registered: ‎11-08-2012
My Device: Blackberry 10 - Dev Alpha B | Blackberry Playbook | Blackberry Torch 9810

Re: how to listen the sms

What type of application are you building?  (eg. Java/Cascades/Web)

 

In general you have to create a SMS message connection and then specify a port to listen for the messages

 

Have you taken a look at these:  http://docs.blackberry.com/en/developers/deliverables/6022/javax/wireless/messaging/MessageListener....

 

and for Web:

https://developer.blackberry.com/html5/api/blackberry.message.sms.html

 

 

 

William Hoang

Application Developer Advocate | Developer Relations
BlackBerry


Developer
aykarthik
Posts: 187
Registered: ‎08-13-2008
My Device: Not Specified

Re: how to listen the sms

Thanks for your reply.

 

I think java code doesn't work in Native development. i need smslistener api in naive development.