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
#defineconstants 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)ratingConditionsHaveBeenMetmethod to change this behavior. - Set the
#defineconstants for any conditions to-1to ignore it. For example, I don’t care how many days since the app has been installed, so I setAPPIRATER_DAYS_UNTIL_PROMPTto-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_DEBUGtoYESin 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 clearNSUserDefaultssettings.
No comments:
Post a Comment