marmalade / openfeint

Open Feint for Marmalade
http://openfeint.com/
8 stars 7 forks source link

OpenFeintSettingDevelopmentMode #5

Closed macieks closed 12 years ago

macieks commented 12 years ago

With new OpenFeint SDK they've introduced new setting "OpenFeintSettingDevelopmentMode".

Unfortunately, this is mandatory, otherwise you get a dialog box "OpenFeint Developer Warning" at startup saying "You must specify a value for OpenFeintSettingDevelopmentMode in your settings passed to [OpenFeint initializeWithProducKey]".

I tried setting OpenFeintSettingDevelopmentMode to 0 or 1 (not sure how native enums translate to ints) but I still got that dialog box at startup (before logging in).

Any idea on how I could fix this? Or would it require library changes? Thanks!

(and btw. great library!)

faizann commented 12 years ago

Did you try using the latest code from github? There is no such prompt in latest code.

This situation is already handled inside extension code as

#ifdef DEBUG
                 [NSNumber numberWithInt:OFDevelopmentMode_DEVELOPMENT], OpenFeintSettingDevelopmentMode,
#else
                 [NSNumber numberWithInt:OFDevelopmentMode_RELEASE], OpenFeintSettingDevelopmentMode,
#endif
                 [NSNumber numberWithInt:0], OpenFeintSettingDevelopmentMode,

Looking at this I realised that there is bug in my code where DevelopmentMode is always set to 0. I will delete this line and push to github later today.

macieks commented 12 years ago

Thanks for looking at it.

And yes, I did get latest code from github and yet I still see that dialog box on my ipad.

faizann commented 12 years ago

Hi

Forgot to inform you that I updated code a while ago and new libs are also in repo. This should surely get rid of developmentmode messagebox.

macieks commented 12 years ago

Thanks faizann. Works great now.

macieks commented 12 years ago

This is just FYI.

I realized I wasn't testing the correct version. Now that I did I could still see this popup message in my app.

However, I found that it's not showing in the example app, only in my app, so I tried to spot the difference in my initialization code. Eventually I found that in my app I was not setting OpenFeintSettingShortDisplayName property. And for some strange reason this is always forcing the popup dialog to show in OpenFeint.

faizann commented 12 years ago

That is very interesting. I guess there is bug in OpenFeint's own code.

I am glad you found out the issue.