Skip to content

kgividen/com.netsmartcompany.rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com.netsmartcompany.rating

Titanium Alloy Widget to prompt users to rate an app

Overview

This is a widget for the Appcelerator Alloy MVC framework to prompt a user if they want to rate an app.

Screenshot

Features

  • Free to use and open source
  • Drop the widget into your view XML file
  • Works on Android, iOS
  • Once they've rated the app it will no longer ask them to rate again unless you clear it out.

Usage

  • Add the widget to a view
<Widget id="rating" src="com.netsmartcompany.rating"/>

Initialize it in your controller

var appId = "APPID",   //App ID for itunes or package_name for GooglePlay
    appName = "CoolApp", //Name of you APP for the Title
    appMsg = "If you enjoy using CoolApp, would you mind taking a moment to rate it?  Thanks!",//Message you want to display to the user to get them to rate it.
    runEvery = 3, //How many times can they run the app before being prompted to rate it.
    appDebug = false; //If set to true it will run it every time.

$.rating.init(appId, appName, appMsg, runEvery, appDebug);

Run it in your controller

$.rating.run();

Note: For android it's best to do this on the opening of the root window.

$.win.addEventListener('open', function(e) {
    $.rating.run();
});

Clear it out so it prompts them again

$.rating.clear();

Example

See an example usage here: https://github.com/kgividen/AlloySpike

About

Titanium Alloy Widget to prompt users to rate an app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published