Skip to content

2.1.0 — Custom asynchronous review conditions

Latest

Choose a tag to compare

@eeoom eeoom released this 13 Nov 09:06

New in 2.1.0

Add custom asynchronous conditions with addCustomConditionBeforeShowDialog. Conditions run in registration order after the configured delay and apply to both automatic and explicit review requests. All conditions must return true; false skips the attempt without advancing the reminder timestamp.

Callback errors are reported as failed with custom_condition_failed. Backgrounding or disposal stops waiting for callbacks and prevents the native request. Application-owned work cannot itself be aborted. Built-in eligibility and app activity are rechecked before invoking the native API.

Inspired by PR #18 from benco8186; thank you for the contribution!

Migration notice — still applies to 2.1.0

No additional breaking changes from 2.0.x: the new conditions are optional.

Apps upgrading from 1.x must still migrate:

  • monitor() initializes without requesting a review by default. Await monitor(automaticallyRequestReview: true) for automatic requests, or call requestReviewIfEligible() explicitly.
  • Requires Flutter 3.47 / Dart 3.13, Android API 24+ and iOS 13+ (Flutter may require newer).
  • Sessions replace counting every resume, with a default 30-minute background gap. The default reminder interval is 90 days. Configuration is per instance.
  • Remove manual Play Review dependencies added solely for this plugin.

The prominent upgrade warning and complete 1.x migration guide are retained in the package README.

Migration guide: https://github.com/eeoom/advanced_in_app_review/blob/2.1.0/README.md#migration-from-1x
Custom conditions: https://github.com/eeoom/advanced_in_app_review/blob/2.1.0/README.md#custom-asynchronous-conditions
Package: https://pub.dev/packages/advanced_in_app_review/versions/2.1.0

Validation: all six CI matrix jobs passed for Flutter 3.47.0 and 3.50.0, including 34 Dart tests, Android builds/native tests, iOS SwiftPM/CocoaPods builds and iOS simulator integration tests. pub.dev validation reported zero warnings.

A completed native request does not confirm that a dialog appeared or a rating was submitted.