Fork of Flutter Community: app_review with updated dependencies.
Online Demo: https://fluttercommunity.github.io/app_review/
Flutter Plugin for Requesting and Writing Reviews in Google Play and the App Store. Apps have to be published for the app to be found correctly.
It's important to note that the App ID must match the App ID in Google Play and iTunes Connect. This can be changed in the Info.plist on iOS and app/build.gradle on Android. You will use this App ID for other services like Firebase, Admob and publishing the app.
Opens In App Review but only if Play Services are installed on the device and the App is downloaded through the Play Store. Check out the official documentation.
iOS manages the pop-up requesting review within an app. You can call the code through AppReview.requestReview
and if the user has "rate in apps" turned on, iOS will send "the request for the review" pop up. This is the required way for requesting reviews after iOS 10.3.
In debug mode it will always display. In apps through TestFlight, the AppReview.requestReview
does nothing.
import 'dart:io';
import 'package:app_review/app_review_plus.dart';
import 'package:flutter/material.dart';
@override
void initState() {
super.initState();
if (Platform.isIOS) {
AppReview.requestReview.then((onValue) {
print(onValue);
});
}
}
Just a sanity check to make sure there were no errors.
You could store a timestamp to know when to call again.
It doesn't really matter.