isAvailable method
Checks if the device is able to show a review dialog.
On Android the Google Play Store must be installed and the device must be running API 21 or higher at the native plugin level. The host Flutter SDK can require a higher version (Flutter 3.47 requires API 24).
iOS devices must be running iOS version 15.0 or higher.
MacOS devices must be running macOS version 12.0 or higher
Implementation
@override
Future<bool> isAvailable() async {
if (!_supportsReview) return false;
try {
return await _channel.invokeMethod<bool>('isAvailable') ?? false;
} catch (error, stack) {
if (kDebugMode) {
debugPrint('InAppReview.isAvailable failed: $error\n$stack');
}
return false;
}
}