Rating is a native extension to handle the process of rating an application. It has a set of methods that can be combined to allow developers to collect and interpret some information before asking the user to rate the application, which might increase the chances of a positive rate. Regarding the available information, the extension provides a method to read how many times the application has been launched, how many uses per week and if the current version has been rated by the user, for instance.

Regarding the rating process, the extension has a method to directly open the rating screen of the corresponding app store. Additionally it’s possible to define a period of time or a certain amount of launches to trigger the rating screen, among other options.


// Call this when application launched

// Two examples of rating use

trace("Launches: " + Rating.usesCount);

// Customize rating message
Rating.messageTitle = "Rate my app!";
Rating.message = "You like it, I know you do!";

// Schedule prompt to trigger in 3 days and a half
Rating.daysUntilPrompt = 3.5;
// If the user don't rate the app, remind him
// after 7 days.
Rating.remindPeriod = 7;
Air Native Extension, Android, iOS . URL.