I am using the latest version of the Google Maps for iOS SDK. I noticed that the SDK stores a cache of map tiles in the GMSCacheStorage directory in my apps filesystem. I have not found a way through the SDK to clear this cache. Is there any known workaround for emptying the Tiles.sqlite file that holds the cached data?
I was able to just delete the file off the file system to clear the data, but it does not regenerate, so no future caching would be done.
Thanks,
no there is no public api for that.
you can fake a memory warning notification and gms will clear... a bit
(note this isnt App Store safe)
I also class-dumped the sdk and found methods with promising names but they don't really seem to help more than the notification (which also doesn't help much)