Interface StoreReviewService

All Known Implementing Classes:
AndroidStoreReviewService, IOSStoreReviewService

public interface StoreReviewService
The StoreReviewService provides a way to request store ratings and reviews from users.

Example

 StoreReviewService.create().ifPresent(service -> {
      service.requestStoreReview();
  });
Since:
4.0.15
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an instance of StoreReviewService.
    void
    Prompts the user with a request to rate and do a review of the current app in the store, without leaving the app Warning: on iOS it can be used only up to three times a year for the same app and version, and also the user could have disabled it from Settings
  • Method Details

    • create

      static Optional<StoreReviewService> create()
      Returns an instance of StoreReviewService.
      Returns:
      An instance of StoreReviewService.
    • requestStoreReview

      void requestStoreReview(String fallbackURL)
      Prompts the user with a request to rate and do a review of the current app in the store, without leaving the app Warning: on iOS it can be used only up to three times a year for the same app and version, and also the user could have disabled it from Settings
      Parameters:
      fallbackURL - A string with a URL to access directly the store to leave a review, in case the request failed