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
Contributor
Posts: 19
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Hi.

 

I'm trying to use the default UI from Scoreloop, I created a valid SCUI_Client_h and I call  SCUI_Client_ShowFavoriteGamesView(), which returns SC_OK, but nothing happens, my game keeps running on the foreground, I don't see any UI. Am I supposed to do something else? I'm using an opengl context to draw stuff to the screen, nothing else. Do I need to do something different with the window setup or something? (I remember paymentservice having some weird window setup requirements to be able to show stuff on my screen).

 

Is the Scoreloop UI a separate process, or will it try to use my window?

 

Thanks.

 

Ariel.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

You should see separate window. Is your game already marked as 'favourite'? that might prevent this window from showing up (just a guess).

Contributor
Posts: 19
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

The game is not published yet, so probably not.

 

By "separate window" you mean it's another app? Would it also open with a "navigator_invoke" call?

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

yes it is "like" another app, imgine new frame covering your game and stays on top of your game until you close it. Do you perfrom any Scoreloop activity successfully in your game?

Contributor
Posts: 19
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Not really, I tried to pull some scores using SC_ScoresController_LoadScores, but I'm getting a response with error SC_HTTP_SERVER_ERROR. I checked that the game_id, game_secret, etc are correct, I still get SC_OK from the call to show the UI, but nothing..

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Make sure basic stuff from samples works first. When you fix it probably your problem will be resolved.

Contributor
Posts: 19
Registered: ‎03-19-2012
My Device: playbook
My Carrier: movistar

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

The errors I'm getting are SC_HTTP_SERVER_ERROR and SC_REQUEST_FAILED, which are both server side according to the documentation, I can't fix their servers Smiley Happy And anyway I don't think that's relevant, in any case I should be seeing a UI screen that tells me there's some sort of server error. Isn't that the point of this?

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

My App is using ScoreLoop without any problem.

SC_HTTP_SERVER_ERROR usually happens when you have no network connectivity.

I don't believe you can see any Scoreloop's functionality (including UI screens) unless your app successfully connects to ScoreLoop server.

Contributor
Posts: 22
Registered: ‎08-10-2012
My Device: Playbook
My Carrier: N/A

Re: Calling SCUI_Client_ShowFavoriteGamesView() does nothing

Was struggling with this too, but finally found the answer:

 

You must set a window group id in your window initialization. BButil.c (Which i was using for opengl initialization) doesn't seem to do this (at least not in the version i had).

 

ie. you need to call: 

screen_create_window_group(window_id, window_group_id)