pushandplay / cordova-plugin-apprate

This plugin provide the "rate this app" functionality into your Cordova/Phonegap application
Apache License 2.0
298 stars 191 forks source link

In App review: after giving review not able to open the in app review again #282

Open ksabariraj opened 4 years ago

ksabariraj commented 4 years ago

Good Day,

Thanks for the In app review 👍

After giving review not able to open the in app review again. Could you please support on this?

Code Below:

AppRate.preferences = { useLanguage: 'en', displayAppName: 'In App Review', usesUntilPrompt: 1, inAppReview: true, promptAgainForEachNewVersion: true, reviewType: { ios: 'InAppReview', android: 'InAppReview' }, storeAppURL: { android:market://details?id=${this.config.package}, }, callbacks: { handleNegativeFeedback: function () { window.open('mailto:feedback@example.com', '_system'); }, onRateDialogShow: function (callback) { callback(1) // cause immediate click on 'Rate Now' button }, onButtonClicked: function (buttonIndex) { console.log("onButtonClicked -> " + buttonIndex); } }, openUrl: AppRate.preferences.openUrl }; AppRate.promptForRating();

Log: I/PlayCore: UID: [10699] PID: [20816] ReviewService : requestInAppReview I/PlayCore: UID: [10699] PID: [20816] ReviewService : Initiate binding to the service. I/chromium: [INFO:CONSOLE(10399)] "onButtonClicked -> 1", source: http://localhost/build/main.js (10399) I/PlayCore: UID: [10699] PID: [20816] ReviewService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService}) I/PlayCore: UID: [10699] PID: [20816] ReviewService : linkToDeath I/PlayCore: UID: [10699] PID: [20816] OnRequestInstallCallback : onGetLaunchReviewFlowInfo I/PlayCore: UID: [10699] PID: [20816] ReviewService : Unbind from service. D/AppRate: request review success D/CordovaActivity: Paused the activity. D/InputTransport: Input channel constructed: fd=148 D/ViewRootImpl@bf700aa[PlayCoreDialogWrapperActivity]: setView = DecorView@7db449b[PlayCoreDialogWrapperActivity] TM=true MM=false D/ViewRootImpl@638586f[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0 D/ViewRootImpl@bf700aa[PlayCoreDialogWrapperActivity]: dispatchAttachedToWindow

Thanks.

adamk22 commented 3 years ago

Experiencing the same issue here, the plugin fails to do anything when a review is already given. Similar code and logs.

krishnadaspalode commented 2 years ago

Hi @ksabariraj ,

Any way to work on the callbacks like 'onButtonClicked' or 'onRateDialogShow'. It's not triggering after the in app review launches. Also any solutions to get this app review opened up again and again in same device? As of now, it is coming only once per a store user.

Regards, Krishna