Skip to content
GGRating makes it very easy to include a nag-screen or popup in your app to solicit ratings and reviews from your users.
Lua
Find file
Latest commit 2ffc9e8 @GrahamRanson GrahamRanson Merge pull request #1 from fakestarbaby/support_ios7_review_link_url
Support new review url for iOS7
Failed to load latest commit information.
GGRating.lua support_ios7_review_link_url
README.md Adding usage instructions

README.md

GGRating

GGRating makes it very easy to include a nag-screen or popup in your app to solicit ratings and reviews from your users.

Basic Usage

Require the code
local GGRating = require( "GGRating" )
Create your Rating object passing in your apps id, the market the game is in, the ask frequency, alert paramaters and optional listener
local listener = function( event )
    print( event.phase )
end

local alert = 
{
    title = "Rate App?",
    caption = "Would you like to rate the app?", 
    buttons = { "Yes", "Not Yet", "Never" }
}

local rating = GGRating:new( 000000000, GGRating.Market.Apple, 5, alert, listener )
--local rating = GGRating:new( com.company.game, GGRating.Market.Google, 10, alert, listener )
Create your Rating object passing in your apps id, the market the game is in, the ask frequency, alert callback and optional listener
local listener = function( event )
    print( event.phase )
end

local onAlert = function()
    -- This is where you would display your own request dialog
end

local rating = GGRating:new( 000000000, GGRating.Market.Apple, 5, onAlert, listener )
Make a request to rate the app. Ask every time you get to a point where you would be happy for the player to be

nagged, for instance after completing a level or getting a new high score. The request will only get presented to the player when this function has been called the required number of times.

rating:askToRate()
Manually set a flag to never make sure the player is never prompted.
rating:neverRate()
Reset the rating data
rating:reset()
Destroy the Rating object
rating:destroy()
rating = nil

Update History

0.1

Initial release

Something went wrong with that request. Please try again.