-
Notifications
You must be signed in to change notification settings - Fork 1.3k
IOS: Offline pack is not working properly on next day when iPad is in offline. #9705
Comments
Please download the video file from dropbox for further reference of this issue, https://www.dropbox.com/s/sdfs2y05ivrz9q3/mapbox%20offline%20pack%20issue.mov?dl=0 But, I have checked the same scenario using the older SDK v3.5.4, it's working there. |
@ThiyagarajanShivSankaran thanks for reporting this bug |
@ThiyagarajanShivSankaran it's hard to see this from the video; are you using raster tiles or vector tiles? |
@kkaefer we are using vector tiles. Sorry for the video clarity can you download and check. Thanks. |
This looks like #9211 I think the expires timestamps in the database are expired after some days. |
I think we fixed the bulk of this problem with a simple change, in src/mbgl/tile/tile_loader_impl.hpp
|
Can I know what is the status of this issue. We need this to be fixed immediately. Thanks. |
@kkaefer @friedbunny @boundsj Status please ??? |
@ThiyagarajanShivSankaran There’s been no change in the status of this issue — when someone has the opportunity to investigate further, they will post an update here. In the meantime, any additional information (or testing of proposed fixes) is much appreciated. |
@andrewljohnson is this fix in the latest release of mapbox sdk? 3.6.2? we will test this and get back to you |
@arethasamuel not AFAIK |
@andrewljohnson @kkaefer @friedbunny @boundsj this issue still exists in mapbox 3.6.2
So i opened up the cache.db sqlite database and found out that the table: tiles has a column called expires and the value of the expires column has a date 12 hours After the offline pack was installed. Is there a way to increase this time? (like at least by a year or something?) |
Hi @friedbunny yeah the above fix is working. |
@kkaefer do you think that the fix @andrewljohnson proposed in #9705 (comment) should be pulled into the SDK? |
There are several underlying issues:
I attempted a refactor of our tile state system in https://github.com/mapbox/mapbox-gl-native/tree/make-stale-resources-renderable, but it's incomplete. |
This should be fixed by #10012 and 3.6.4, which will be available imminently. |
Platform: IOS
Mapbox SDK version: 3.6.0
Steps to trigger behavior
Expected behavior
Actual behavior
We have client's who will work only in offline for more than 2 days. In that case the offline packs should work , but it's not working. I think the tiles are expiring every day.
The text was updated successfully, but these errors were encountered: