nicklockwood / iRate

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#irate
Other
4.1k stars 734 forks source link

Fix for iTunesServiceURL request takes forever https://github.com/nic… #293

Closed cliren closed 7 years ago

cliren commented 7 years ago

We experience app freezing randomly on both devices and simulator (1 in 10 times).

How did we find this fix? Found this fix by debugging and logging stops atNSLog(@"iRate is checking %@ to retrieve the App Store details...", iTunesServiceURL);. We added additional logging and it never made past this line NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:REQUEST_TIMEOUT];. So tried different cachePolicy options and we fond NSURLRequestReloadIgnoringLocalCacheData worked well and didn't experience app freezing after.