fix: remove in-app review

closes: #129
This commit is contained in:
Rongjian Zhang 2020-12-13 13:08:17 +08:00
parent 2048a34941
commit c6a8b42ef1
1 changed files with 9 additions and 8 deletions

View File

@ -435,15 +435,16 @@ class AuthModel with ChangeNotifier {
_gqlClient = null;
notifyListeners();
// TODO: strategy
// waiting for 1min to request review
if (!hasRequestedReview) {
hasRequestedReview = true;
Timer(Duration(minutes: 1), () async {
if (await inAppReview.isAvailable()) {
inAppReview.requestReview();
}
});
}
// if (!hasRequestedReview) {
// hasRequestedReview = true;
// Timer(Duration(minutes: 1), () async {
// if (await inAppReview.isAvailable()) {
// inAppReview.requestReview();
// }
// });
// }
}
// http timeout