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
bbj
Contributor
bbj
Posts: 43
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....

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (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!
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (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!
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: profileBox iconRegistered not emitted

[ Edited ]

You guess wrong.  :smileywink:  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.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (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!
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: profileBox iconRegistered not emitted

:Whistling:

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
ryansweny
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::smileytongue:latform::bbm::ImageType::smileytongue:ng, 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...

Please use plain text.
Developer
ryansweny
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.

Please use plain text.