Skip to content

aliasgar84/Appirater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

 Using Appirater

1) Require appirater in the scene e.g. splashScreen which is called from main.lua
2) Define onSystemEvent function with parameter event e.g. splashScreen.lua
	function onSystemEvent( event )
		if(event.type == "applicationStart") then
			appirater.appLaunched(true)
		elseif(event.type == "applicationResume") then
			appirater.appEnteredForeground(true)
		elseif(event.type == "applicationExit") then
		elseif(event.type == "applicationSuspend") then
			appirater.appWillResignActive()
		end
	end
3) Call the above function in a runtime event in the same scene e.g. splashScreen.lua
	Runtime:addEventListener( "system", onSystemEvent)
4) Require appirator and call appirater.userDidSignificantEvent(true) wherever there is some achievement  in the app e.g. the user completes the whole activity. 
5) Change the appID and appName as per your Application. 

About

The famous Appirater is now ported for Corona SDK. Uses lua code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages