قالب وردپرس درنا توس
Home / IOS Development / Someone finds that SKStoreReviewController for Appraisals often blocks the user interface and things get a little laggy for a few seconds until the popup shows? : iOSProgramming

Someone finds that SKStoreReviewController for Appraisals often blocks the user interface and things get a little laggy for a few seconds until the popup shows? : iOSProgramming



I've used this in multiple apps, and it's always the same – The app user interface becomes irresponsive or laggy for a few seconds until the popup appears.

I call it on the UI thread while I read somewhere.

Here is the code I use, which is quite common:

  - (void) displayReviewController {
dispatch_async (dispatch_get_main_queue (), ^ {
if (@ available (iOS 10.3, *)) {
[SKStoreReviewController requestReview];
}
});
}

Source link