CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
181 stars 65 forks source link

[NativeScript] PersistentCacheTileDataSource's stopAllDownloads method not working #490

Closed dpattou closed 2 years ago

dpattou commented 2 years ago

Hello, I'm running into an issue when trying to cancel downloads started with PersistentCacheTileDataSource's startDownloadArea() method.

If calling the stopAllDownloads() method right away (before any of the listener's callbacks are called), the download doesn't start but calls to stopAllDownloads() after the tiles download has begun don't seem to do anything, and the download continues in the background.

Is there any known issue regarding this feature ?

For reference, I'm using the nativescript-comunnity/ui-carto 1.8.9, which binds carto mobile-sdk 4.4.2.

Thanks

mtehver commented 2 years ago

@dpattou Thanks for the detailed report. Indeed, this is a bug. Will fix it this soon and the fix will be included in 4.4.5 release.

mtehver commented 2 years ago

Closing this, fix is included in 4.4.5, which is now released.