Skip to content

Latest commit

 

History

History
103 lines (64 loc) · 2.76 KB

Readme.markdown

File metadata and controls

103 lines (64 loc) · 2.76 KB

save: Plugin API Docs

 
Type Library
Corona Store save
Keywords save, secure, crypto, hash, JSON
See also Sample code

Overview

The save plugin can be used in your Corona project. It enables you to securely save application data, such as game high scores and achievements progress, and persistent settings/configuration. The secure aspect is useful for preventing users from modifying save data in an attempt to cheat leaderboards/achievements, or unlock IAP for free.

Syntax

local save = require "plugin.save"

Functions

Properties

Project Configuration

Corona Store Activation

In order to use this plugin, you must activate the plugin at the Corona Store.

SDK

When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
{
	plugins =
	{
		-- key is the name passed to Lua's 'require()'
		["plugin.save"] =
		{
			-- required
			publisherId = "com.pelagic-games",
		},
	},		
}

Enterprise

If you have activated this plugin, you can download this plugin from the corresponding plugin page in the Corona Store.

Resources

Sample Code

You can access sample code here.

Support

More support is available from the Pelagic Games team:

Compatibility

Platform Supported
iOS Yes
Android Yes
Android (GameStick) Yes
Android (Kindle) Yes
Android (NOOK) Yes
Android (Ouya) Yes
Mac App Yes
Win32 App Yes
Windows Phone 8 Yes
Corona Simulator (Mac) Yes
Corona Simulator (Win) Yes