GameCenter AND OpenFeint button without leaving the app?

I would like to do a GameCenter and an OpenFeint button. With the GameNetwork API, however, I can only load one service at a time. I read here (http://developer.anscamobile.com/forum/2011/12/05/help-open-feint-game-center) that you can just do system.openURL(“gamecenter:”), but that takes the user out of the app and into the GameCenter app.

Is there a way to just have it pop up inside our game, or is this the only way to do it while having OpenFeint enabled?

Thank you so much for all the support I’ve been getting through this forum, by the way. Our game is nearing completion, and I couldn’t have done it without your help. Lots of love. [import]uid: 117153 topic_id: 25721 reply_id: 325721[/import]

Hey Misfisk,

I believe you can only ever open Game Center that way, even with native integration. (Which we do have, though it’s in daily builds only right now.)

I can’t recall ever seeing GC open within an app, though I could be mistaken - if so please feel free to correct me and I will look into it further but to the best of my knowledge the above is correct.

Peach :slight_smile: [import]uid: 52491 topic_id: 25721 reply_id: 103994[/import]

A bunch of apps do it, including Air Penguin, Cut the Rope: Experiments, Zenonia4 and Protect the Monkeys.

Here’s a clip: http://minus.com/mVkjbW4KR/

As far as I know, they aren’t made with Corona SDK, but at least on some level, it is possible :slight_smile: [import]uid: 117153 topic_id: 25721 reply_id: 104131[/import]

Oh wow, that’s interesting - I’ve not played any of those (I know, terrible!) but I see what you mean.

I have only seen the main GC screen opened from within an app, never this kind of thing - but I’ll ask Eric about this (he’s the GC genius) and see what he says.

Peach :slight_smile: [import]uid: 52491 topic_id: 25721 reply_id: 104166[/import]

How about this:

  1. Set up both buttons
  2. After selection init the selected game network type
  3. Add appropriate runtime listener if required for selected type

I can’t see why that wouldn’t work [import]uid: 84637 topic_id: 25721 reply_id: 104193[/import]

The displays in the video are the native viewcontrollers provided by Game Center. You can fully access those through our gameNetwork.show() APIs.

[import]uid: 7563 topic_id: 25721 reply_id: 104301[/import]

Thanks for your replies.

I tried setting it up like suggested, but I got the message “gamenetwork.init() should only be called once” when tapping the second of the two buttons.

The trouble is that we want to support the two services at the same time :stuck_out_tongue: We actually are, currently, with OpenFeint relaying score data to GameCenter, the button is the only issue.

Is the situation such that we have to make the player make a choice between GameCenter and OpenFeint, if we want to support both interfaces natively? [import]uid: 117153 topic_id: 25721 reply_id: 104329[/import]