Previous versions of Apptentive used the following 3 methods to show the ratings flow:
- (void)appDidLaunch:(BOOL)canPromptForRating viewController:(UIViewController *)viewController;
- (void)appDidEnterForeground:(BOOL)canPromptForRating viewController:(UIViewController *)viewController;
- (void)userDidPerformSignificantEvent:(BOOL)canPromptForRating viewController:(UIViewController *)viewController;
They have been replacedby a single method in newer versions of the app:
- (void)showRatingFlowFromViewControllerIfConditionsAreMet:(UIViewController *)viewController;
Call it like so:
[[ATAppRatingFlow sharedRatingFlow] showRatingFlowFromViewControllerIfConditionsAreMet:viewController];
The showRatingFlowFromViewControllerIfConditionsAreMet
method will only show the ratings flow if your rating conditions (as set on the Apptentive website) have been met at that point by the user.
- X days after install
- Y number of uses
- Z significant events