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
Highlighted
Visitor
Posts: 1
Registered: ‎05-06-2013
My Device: Z10
My Carrier: Verizon

How to get an event when new Email/SMS/BBM arrives

Hi All, still trying to navigate the new Z10 development (had been doing BB Java for years). I'm porting one of my Java app, which listened for incoming email and sms messages (basically bb java api had folder listener). For BB10, is there something similar? 

Retired
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: How to get an event when new Email/SMS/BBM arrives

Hi

 

you need the MessageService and AccountService classes. I wrote a knowledge base article about SMS APIs which includes a section on this subject. Hopefully this will help:

 

http://supportforums.blackberry.com/t5/Native-Development/BlackBerry-10-Developer-s-Guide-to-SMS/ta-...  

 

Martin

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Developer
Posts: 1,632
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: How to get an event when new Email/SMS/BBM arrives

Is there a way to listen to BBM messages?

Retired
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: How to get an event when new Email/SMS/BBM arrives

I don't think so, no. Have a read of this and see if you agree:

 

https://developer.blackberry.com/develop/bbm_connected/development.html

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim