In-App Message Templates

Custom App Store Review Prompt

Creating a campaign to ask users for an App Store review is a popular usage of in-app messages.

Start by setting the In-App Message delegate in your app. Next,implement the following delegate method to disable the default App Store review message:

1
2
3
4
5
6
7
8
- (ABKInAppMessageDisplayChoice)beforeInAppMessageDisplayed:(ABKInAppMessage *)inAppMessage {
   if (inAppMessage.extras != nil && inAppMessage.extras[@"Appstore Review"] != nil) {
     [[UIApplication sharedApplication] openURL:inAppMessage.uri];
     return ABKDiscardInAppMessage;
   } else {
     return ABKDisplayInAppMessageNow;
   }
}

In your deep link handling code, you can then add the following code to process the {YOUR-APP-SCHEME}:appstore-review deep link:

1
2
3
4
5
6
7
8
9
10
11
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {
  NSString *urlString = url.absoluteString.stringByRemovingPercentEncoding;
  if ([urlString isEqualToString:@"{YOUR-APP-SCHEME}:appstore-review"]) {
    [SKStoreReviewController requestReview];
    return YES;
  }
  // Other deep link handling code…
}

Next, create an In-App Messaging campaign with the following:

  • add the key-value pair “Appstore Review” : “true”
  • set the “On Click Behavior” to “Deep Link Into App,” using the above deep link (e.g., {YOUR-APP-SCHEME}:appstore-review)

Apple limits App Store review prompts to a maximum of 3 times per year for each user, so the campaign should be rate-limited to three times per year per user.

WAS THIS PAGE HELPFUL?