MapCache
MapCache copied to clipboard
Problem with region download
I followed the example with the region downloader but the tiles are not persist when downloaded
Thanks @spyrosskordos. Can you elaborate on that?
I download the tiles successfully but when I kill the app the tiles are removed and the app storage is back to default
Do you have any suggestion ? I downloaded and the example and still the same happens
Simulator or device?
I just opened the instance of the example I used some days ago in my phone in Air Plane mode and it loaded the tiles.
Note that MapCache files are stored a type of folder that is intended for temporary files, files that can be wiped out by the OS if it considers necessary, one option is to modify that folder to a regular folder. (https://github.com/merlos/MapCache/blob/master/MapCache/Classes/DiskCache/DiskCache.swift)
Also you can inspect the folder where the cache is in the simulator to check if the files are still there.
Run this command in Xcode debugger console:
po NSHomeDirectory()
Inside that folder you have the Library/Cache
subfolder.
I hope this helps.
device...so I can replace disk cache for example with realm to be more persist ...or cache disk reliable?