jamesmontemagno / StoreReviewPlugin

Request app store reviews across Xamarin and Windows applications
MIT License
184 stars 24 forks source link

RequestReview does not wait and returns Unknown #51

Open LeoJHarris opened 3 months ago

LeoJHarris commented 3 months ago

Not sure if this is a bug or due to running from an iOS emulator in debug config but calling the below code I only want to surface the review prompt if the customer has not previously completed a review or had cancelled.

if ((ReviewStatus)_localStorageService.GetCustomerAppReview() is ReviewStatus previousReviewStatus && previousReviewStatus is not ReviewStatus.CanceledByUser && previousReviewStatus is not ReviewStatus.Succeeded)
        {
            ReviewStatus review = await CrossStoreReview.Current.RequestReview(testMode: false).ConfigureAwait(true);
            _localStorageService.SetCustomerAppReview(review);
        }

Unfortunately and for some reason maybe because I am running from an emulator the RequestReview does not wait and returns unknown immediately and then the prompt displays therefore getting the result seems impossible, I assume this is because I am running in test mode/emulator but would like to confirm this?