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?
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.
Unfortunately and for some reason maybe because I am running from an emulator the
RequestReview
does not wait and returnsunknown
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?