The appstore_reviews plugin is an innovative solution that empowers developers to effortlessly retrieve customer reviews for their iOS apps from the App Store. As part of the fastlane ecosystem, this plugin streamlines the process of monitoring and responding to user feedback, ensuring a seamless app user experience.
To get started with the appstore_reviews plugin, simply add it to your project by running fastlane add_plugin appstore_reviews. This versatile tool leverages the App Center API key and app ID to fetch reviews, providing an easy and automated way to track and respond to customer feedback.
To utilize the appstore_reviews plugin, integrate one of the following code snippets into your Fastfile, depending on your preferred configuration method:
By utilizing your API key for authentication:
`ruby
reviews = appstore_reviews(
key_id: ENV["ASCAPI_KEY_ID"],
issuer_id: ENV["ASCAPI_ISSUER_ID"],
key_content: ENV["ASCAPI_KEY_CONTENT"],
is_key_content_base64: true,
duration: 1200,
app_id: ENV["APP_ID"],
time_frame: "All"
)
`
Alternatively, use a file path to your API key for authentication:
`ruby
reviews = appstore_reviews(
key_id: ENV["ASCAPI_KEY_ID"],
issuer_id: ENV["ASCAPI_ISSUER_ID"],
key_filepath: "path/to/key.p8",
duration: 1200,
app_id: ENV["APP_ID"],
time_frame: "All"
)
`
Or, leverage a Spaceship token for authentication:
`ruby
reviews = appstore_reviews(
key: token,
duration: 1200,
app_id: ENV["APP_ID"],
time_frame: "All"
)
`
For more information on how to use this plugin, check out the example Fastfile and learn how to automate your beta deployments and releases for iOS and Android apps.