(Easy Social) ssk.social.*
This module contains a couple 'helper' functions to simplify sharing and rating apps.
rate
Open rate interface in appropriate store for app identified id
.
ssk.social.rate( params )
params
- Named table of parametersid
- ID of app, varies by store (see 'Supported Stores' below)appName
(nil
) - (Optional) Name of app (used for tvOS).preProcessed
(false
) - Set this to 'true' if you have already converted your app name to a 'proper' string for the URL, otherwise rate() will try to convert the appName into a 'proper' string.
Supported Stores:
- Tested
- Google Play
id
== "Package Name" used when buiding app
- iTunes Connect
id
== Numeric App ID found on your store page when submitting app.
- Google Play
- Untested
- Amazon (untested)
id
== "Package Name" used when buiding app
- (Apple) tvOS Store (untested)
id
== Numeric App ID found on your store page when submitting app.appName
== Name of app. Utility will clean it for you.
- Amazon (untested)
Example:
-- Rate Sudoku For.. game on Android or iOS
if( onAndroid ) then
ssk.social.rate( {id = 'com.roaminggamer.sudoku4'} ) -- Google Play ID
elseif( oniOS ) then
ssk.social.rate( {id = '1150939979'} ) -- iTunes Connect ID
end
Copyright © Roaming Gamer, LLC. 2008-2016; All Rights Reserved