Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with region download #20

Open
spyrosskordos opened this issue May 3, 2020 · 5 comments
Open

Problem with region download #20

spyrosskordos opened this issue May 3, 2020 · 5 comments
Labels
question Further information is requested

Comments

@spyrosskordos
Copy link

I followed the example with the region downloader but the tiles are not persist when downloaded

@merlos
Copy link
Owner

merlos commented May 3, 2020

Thanks @spyrosskordos. Can you elaborate on that?

@spyrosskordos
Copy link
Author

I download the tiles successfully but when I kill the app the tiles are removed and the app storage is back to default

@spyrosskordos
Copy link
Author

Do you have any suggestion ? I downloaded and the example and still the same happens

@merlos
Copy link
Owner

merlos commented May 6, 2020

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.

@spyrosskordos
Copy link
Author

device...so I can replace disk cache for example with realm to be more persist ...or cache disk reliable?

@merlos merlos added the question Further information is requested label May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants