Skip to content

Instantly share code, notes, and snippets.

View jakeorr's full-sized avatar

Jake Orr jakeorr

View GitHub Profile
@jakeorr
jakeorr / RateMe.js
Last active May 12, 2017 10:22 — forked from psyked/RateMe.js
function RateMe(ios_url, goog_url, usecount) {
if(!Ti.App.Properties.hasProperty('RemindToRate')) {
Ti.App.Properties.setString('RemindToRate', 0);
}
var remindCountAsInt = parseInt(Ti.App.Properties.getString('RemindToRate'), 10);
var newRemindCount = remindCountAsInt + 1;
if(remindCountAsInt === -1) {
// the user has either rated the app already, or has opted to never be
// reminded again.