Sunday 3 March 2013

Easiest Way to Add the Rate-This-App Prompt


Rate-This-App Prompt
I’m not a big fan of reinventing the wheel. If you want to show the rate-this-app prompt under certain conditions, I foundAppirater is the easiest way; I was able to add this functionality to Button Smasher within 30 minutes :)
Adding Appirater to your app project is simple. The README.md provides clear step-by-step instructions to getting started. Unfortunately, you would need to read the comments and code in the source files to customize it. To save you some time, here are some pointers:
  • Appirater.h contains #define constants for customizing the conditions for showing the prompt.
  • The prompt is shown only after all the conditions are met. You can’t have the app shown 2 days after installation OR after the game 10 game plays. Modify(BOOL)ratingConditionsHaveBeenMet method to change this behavior.
  • Set the #define constants for any conditions to -1 to ignore it. For example, I don’t care how many days since the app has been installed, so I setAPPIRATER_DAYS_UNTIL_PROMPT to -1.
  • The rate-this-app prompt will not show again after it has been dismissed (this is intended; we don’t want the prompt to annoy our users). For testing purposes, to have it show again, you could change the value of APPIRATER_DEBUG to YES in Appirater.h. However, if you want to test it with your conditions (e.g. prompt after the game has been played 3 times), remove the app from your simulator/iPhone to clearNSUserDefaults settings.

No comments:

Post a Comment