<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| 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. |
| /** | |
| * The following snippet will ask the user to rate your app the second time they launch it. | |
| * It lets the user rate it now, "Remind Me Later" or never rate the app. | |
| */ | |
| var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); | |
| win.addEventListener('open', checkReminderToRate); | |
| win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' })); | |
| win.open(); | |
| function checkReminderToRate() { |