openfeint.init( )

Description:

Initializes an app with the specified product key, secret, display name, and app id. This should only be called once, and as soon as possible during application start-up.

Starting with daily build #318, iOS OpenFeint will post achievement updates and leaderboard updates to GameCenter provided OFGameCenter.plist is present in the project folder. See http://support.openfeint.com/dev/game-center-compatibility/ for details.

Note: This API has been deprecated by the gameNetwork API.

Syntax:

openfeint.init ( productKey, productSecret, displayName, appId )

Example:

openfeint.init ( "ABCDEFGHI1234567890", "ABCDEFGHI1234567890", "My App Name", "ABCDEFG" )

Parameters:

productKey
String: Your application's OpenFeint product key (provided by OpenFeint).

productSecret
String: Your application's product secret (provided by OpenFeint).

displayName
String: The name to display in OpenFeint leaderboards and other views.

appId
String: The application id (provided by OpenFeint).

Returns:

Nothing.

Remarks:

API is not available in Corona Simulator.

Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    --
  • Windows:
    --
  • iOS:
    Build 2010.222
  • Android:
    Build 2011.557