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
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

BBM ProfileBox not working

Whenever I call a method of ProfileBox, it does nothing and returns false.

 

https://developer.blackberry.com/cascades/reference/bb__platform__bbm__profilebox.html

 

m_profileBox->requestRemoveAllItems(); will returns false

m_profileBox->requestAddItem("Test"); will return false

as will any other method that ProfileBox can call.

 

According to the documentation this should only happen if the app doesn't have permission for BBM, but it has been granted permission. Does anyone know what else may be causing this? The app connects to BBM without issue...


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
Posts: 84
Registered: ‎12-01-2012
My Device: 9790
My Carrier: Orange

Re: BBM ProfileBox not working

Try this sample: https://github.com/blackberry/Cascades-Samples/tree/master/bbmprofilebox

Other BBM samples worked for me: https://developer.blackberry.com/cascades/sampleapps/
Lublin BlackBerry Developer Group


---
If I helped you please mark my response as solution or "Like" it.
Developer
Posts: 889
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: BBM ProfileBox not working

That is the sample I have been basing my code off of. Perhaps I am setting the context wrongly...


Read my thoughts on BlackBerry Development at news.ebscer.com