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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Developer
Posts: 46
Registered: ‎02-22-2012
My Device: Developer
My Carrier: Various

profileBox iconRegistered not emitted

As far as we can tell the iconRegistered() signal as defined in

 

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

 

never gets emitted.

The icons seem to be registerd + profile box can display them, but that may be more by luck than judgement.

 

The result of the connect() is validated + claims the connect() worked all ok.

 

However presumably requestRegisterIcon() is an async operation + may not have completed bt the time the function call returns -  hence the requirement to have a signal/slot in the first place - so how can we be sure the icon has been registerd before attempting to use it....

 

 

 

BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: profileBox iconRegistered not emitted

[ Edited ]

I've been able to reproduce this (iconRegistered signal not fired) and have notified our internal development team.  Looks like a bug.

 

I've logged it in Issue Tracker so you can track the progress of the fix.

 

 ProfileBox iconRegistered signal not fired after registering an icon

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: profileBox iconRegistered not emitted

Any word on this? I cannot update the BBM ProfileBox with an icon due to this bug.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: profileBox iconRegistered not emitted

This has been fixed internally and should be working in our next release.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Highlighted
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: profileBox iconRegistered not emitted

Thanks! I guess there won't be a new release before launch, so can I still get qualified as "Built for BlackBerry" if I just use a textual BBM ProfileBox for now?

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: profileBox iconRegistered not emitted

[ Edited ]

You guess wrong.  Smiley Wink  But yes, you don't need to use an icon to qualify with BBM integration.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: profileBox iconRegistered not emitted

Oh, do tell me more kind sir!

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: profileBox iconRegistered not emitted

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: profileBox iconRegistered not emitted

Soooo... was this actually fixed in 10.0? I can't get it to work either with a 68x68 icon, 12kb.

 

Code:

bool success = m_profileBox->requestRegisterIcon(iconId, bb:Smiley Tonguelatform::bbm::ImageType:Smiley Tongueng, imageData);
qDebug() << "BBM register icon success? " << path << success;

 

Debug:

BBM register icon success?  "/accounts/1000/appdata/com.motek.coloridfree.testDev_coloridfree9e72f647/app/native/assets/images/BBM.com.motekmobile.colorid.girlfriend.achieved.png" false

 

This guy seems to have the same problem too:

http://supportforums.blackberry.com/t5/Cascades-Development/BBM-and-Profile-Box-Items/m-p/2377211/hi...

Developer
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: profileBox iconRegistered not emitted

Two answer my own question.. it mostly works in 10.0. Just don't use a long filename, keep it DOS style 8.3 and that should work for sure. Long names like from Scoreloop awards don't work for me.