OpenFeint in Android game

Hello friend
I’m facing some problems posting scores to OpenFeint leaderboards from my android application.
Input:

  1. I’ve got my app on the android market
  2. In my app I’ve got the code to post score
  3. When posting my score nothing happens - in leaderboards HS Count = 0.

To test this behaviour I’ve created the test app which does nothing but only posts data to openFeint (in this app I’m using my original game’s product key and secret). Here is the code:

local openfeint = require("openfeint")  
  
local of\_product\_key = "YhYbAKBoPR2s3Kfe79etB"  
local of\_product\_secret = "YikR8ewwyCAsyaJ4AMdS78MvcuLd4aPb7i3mSsAsgBd"  
local of\_app\_id = "316983"  
  
openfeint.init( of\_product\_key, of\_product\_secret, "ShiftMe Fifteen", of\_app\_id )  
  
openfeint.setHighScore( { leaderboardID="806778", score=312, displayText="Peter: 05:12" } )  

The question is - why this data is not shown in OpenFeint? Does anyone have an experience with OpenFeint in their android games? [import]uid: 67485 topic_id: 12026 reply_id: 312026[/import]

Hey,

Please see this thread;
http://developer.anscamobile.com/forum/2011/05/10/openfeint-android

Peach [import]uid: 52491 topic_id: 12026 reply_id: 43870[/import]

Maaaaaan… :frowning: So no OF on Android??? :frowning: :frowning: :frowning: :frowning: :frowning: :frowning: [import]uid: 67485 topic_id: 12026 reply_id: 43904[/import]

OpenFeint support on Android will be made available in the next release of the Corona SDK… and if you are a subscriber, then it is available “today” in the latest daily build.

Please note that we’re in the process of deprecating the current OpenFeint API for something new, to be documented in the near future. The old API will still work, but the simulator will log warnings. So, stay tuned for upcoming documentation updates. But, bottom line, you can implement this on Android today. [import]uid: 32256 topic_id: 12026 reply_id: 44228[/import]

I’ve been trying to get the openfeint to work using the latest build - 2011.568 - and it’s not working

In my app, the openfeint.init “seems” to work, however I do not get any prompt to sign into game center and the openfeint.launchDashboard(“leaderboards”) does nothing after the init. When I say “seems” the init function does not throw up any errors.

So I tried out the sample app - OFlandscape - replaced the keys and what not with my own and when I compile and install it on my android device (Samsung Galaxy Tab, arm 7, 2.2) it pops up error that says “application corrupted”.

Has anyone been able to get the OpenFeint for Android working since the July 7 build? [import]uid: 29520 topic_id: 12026 reply_id: 45011[/import]

I have Openfeint working perfectly in my Android game with latest daily build. Replace those openfeint.init() with gameNetwork.init(). More information here: http://developer.anscamobile.com/reference/index/game-network [import]uid: 18445 topic_id: 12026 reply_id: 45016[/import]

Thank you uapo15! Worked! [import]uid: 29520 topic_id: 12026 reply_id: 45052[/import]

Sorry, I’m back… All was working great until today. I went to do my final build and submit to the android market, but

now when the app starts, it tries to load openfeint (“Loading Feint” with loading animation) and times out and I get an “Error Screen loading failed: 404 error”.

I didn’t (dont think) I even touched the open feint code between when I had it working and now. I just changed the keystore from debug to my own.

I’m using build 2011.568

Anyone have anythought? Is this just a hiccup on open feint’s servers? [import]uid: 29520 topic_id: 12026 reply_id: 45643[/import]

It might be openfeint servers, but i just checked my game (not released to android market) and openfeint worked. I think problem might be this: openfeint needs to review your app before you can publish it to Android market. Go to your openfeint developer page, and click “enable android app” box. Then openfeint reviews your app (it can take quite long time) and then you can publish it to market. If you have not enabled your app, there reads “Your OpenFeint features are not active” next to “enable android app” box. So problem might be that.
But if you have done that, i dont know where problem is. [import]uid: 18445 topic_id: 12026 reply_id: 45645[/import]

uapo15 - thanks for the reply!

Yes, the openfeint is working fine for my iPhone version, just not the android. I went into check the approval and it is approved and says it’s enabled.

However I did notice the Package Identifier was wrong on the android settings, so I corrected it. I still have the same error, but now I am wondering if making that sort of change after the approval requires it to be synced on their servers? Ugh… how it was working with the wrong package identifier before I don’t know. Sent a email to open feint support, to see.

Thanks again for your help. [import]uid: 29520 topic_id: 12026 reply_id: 45657[/import]

We are having the same problem.

Do you have already a solution? [import]uid: 63565 topic_id: 12026 reply_id: 45741[/import]

No, not yet. What build are you using? Was yours working previously too and quilt working? Are you getting the same 404?

I submitted a support ticket to openfeint but hsvent heard back. [import]uid: 29520 topic_id: 12026 reply_id: 45769[/import]

hey

we are using 2011.570.

yes, all the same. first it worked fine and now it gives us this 404 error.

we also have no reply so far from openfeint.

but the question is still what the reason is:

  • bad configs?
  • coronas fault?
  • openfeints fault?

i have no idea atm. [import]uid: 63565 topic_id: 12026 reply_id: 45797[/import]

e.bajramovic, I ran the app on my android again, as of this morning it is working. I have done nothing since my last update. Maybe OF finally got my support ticket and fixed something? I haven’t heard back.

If you are still having issues, maybe check that the Package Identifier is what it should be in both your build and on OF admin tool?

Glad it’s working again!! [import]uid: 29520 topic_id: 12026 reply_id: 46062[/import]

Yep, same here! Very strange but it works! [import]uid: 63565 topic_id: 12026 reply_id: 46064[/import]

can anyone tell me how I can post scores on openfeint. I have managed to get it integrated on my game but when i go on openfient to check my score, i don’t see anything.

I also tried to you require gameNetwork on my game and I keep getting a blank screen.
I have followed the peach tutorial online, to integrate it to my game, but the score is not showing
[import]uid: 40990 topic_id: 12026 reply_id: 60391[/import]

can you please share how you got shows working? [import]uid: 40990 topic_id: 12026 reply_id: 60399[/import]

@diginutscorp
I’m not sure if you are using openfeint on Android or iOS. If your using it with Android and having issues, be aware the show function only works in the 3 following ways on the Android.

  
-- Show Openfeint panel  
gameNetwork.show()  
  
-- Show Leaderboards  
gameNetwork.show( "leaderboards" )  
   
-- Show Achievements  
gameNetwork.show( "achievements" )  

If you are having issues with iOS, post your code and we can take a look.
[import]uid: 56820 topic_id: 12026 reply_id: 60627[/import]