britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
311 stars 81 forks source link

getting Error on requestReview #4

Closed YashMobileFirst closed 4 years ago

YashMobileFirst commented 4 years ago

i am following the usage instructions and I got this error and i don't understand the error message My app is already uploaded to the Play store

can You Tell me what was the problem and how solve it !

I/PlayCore(23998): UID: [10324] PID: [23998] ReviewService : requestInAppReview (com.app.prothink) I/PlayCore(23998): UID: [10324] PID: [23998] ReviewService : Initiate binding to the service. I/PlayCore(23998): UID: [10324] PID: [23998] ReviewService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService}) I/PlayCore(23998): UID: [10324] PID: [23998] ReviewService : linkToDeath I/PlayCore(23998): UID: [10324] PID: [23998] OnRequestInstallCallback : onGetLaunchReviewFlowInfo I/PlayCore(23998): UID: [10324] PID: [23998] ReviewService : Unbind from service. I/Timeline(23998): Timeline: Activity_launch_request time:704941986 W/ActivityThread(23998): handleWindowVisibility: no activity for token android.os.BinderProxy@bf08d94

britannio commented 4 years ago

Are you using the version of your app that was downloaded from the Play Store?

Shajeel-Afzal commented 4 years ago

@britannio what is the YOUR_APP_STORE_ID? I think the package name in the case of Google Play?

import 'package:in_app_review/in_app_review.dart';

final InAppReview inAppReview = InAppReview.instance;

if (await inAppReview.isAvailable()) {
    inAppReview.requestReview();
} else {
    inAppReview.openStoreListing(appStoreId: '<YOUR_APP_STORE_ID>')
}
YashMobileFirst commented 4 years ago

Are you using the version of your app that was downloaded from the Play Store?

Yes, Both version are same !

britannio commented 4 years ago

@britannio what is the YOUR_APP_STORE_ID? I think the package name in the case of Google Play?

import 'package:in_app_review/in_app_review.dart';

final InAppReview inAppReview = InAppReview.instance;

if (await inAppReview.isAvailable()) {
    inAppReview.requestReview();
} else {
    inAppReview.openStoreListing(appStoreId: '<YOUR_APP_STORE_ID>')
}

It's only necessary if you are using the Apple App Store.

britannio commented 4 years ago

@YashMobileFirst The error log looks similar to the one provided in https://github.com/britannio/in_app_review/issues/3 where the app wasn't being run from the Play Store. If you still have an issue after following the Android documentation then let me know. https://developer.android.com/guide/playcore/in-app-review/test

Shajeel-Afzal commented 4 years ago

@britannio kindly help! Do I need to replace the APP_STORE_ID with the package name?

britannio commented 4 years ago

@britannio kindly help! Do I need to replace the APP_STORE_ID with the package name?

If you're using Android then you can ignore the appStoreId field. If you're using IOS or MacOS then go to App Store Connect > General > App information and look for your "Apple ID".

britannio commented 4 years ago

@YashMobileFirst Are you still having issues with this plugin?