personaly.*

Type Library
Revision 2017.3060
Keywords ads, advertising, Persona.ly
Platforms Android, iOS

Overview

Persona.ly provides a way to reward your users with in-game currency in exchange for performing simple activities like watching videos, downloading apps, and filling out surveys.

Important
  • You'll need your own user management which generates a unique user ID for all of your players.

  • You'll need your own server since credit is validated via S2S (Server-to-Server) postbacks.

Registration

Before you can use this plugin, you must register with Persona.ly.

Syntax

local plugin = require( "plugin.personaly" )

Functions

Events

Project Settings

To use this plugin, add two entries into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.personaly"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.google.play.services"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
    },
}

Important

If building for iOS, you must bypass App Transport Security (ATS) by adding the following to the plist table of build.settings. While Corona Labs does not blindly encourage this approach for all developers and projects, bypassing ATS is required in certain cases. For more information on ATS, please see the Managing App Transport Security guide.

settings =
{
    iphone =
    {
        plist =
        {
            NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
        },
    },
}
Note

For Android, the following permissions/features are automatically added when using this plugin:

  • "android.permission.INTERNET"

Support