Skip to content

Offline Search not working — TileStore fails to load tiles (erroredResourceCount = 10), OfflineIndexChangeListener not triggered #369

@sishaikh2025

Description

@sishaikh2025

Environment

  • Search SDK Component:
    • Core Search SDK (SearchEngine)
    • Offline Search SDK (OfflineSearchEngine)
    • Address Autofill SDK
    • Search UI SDK
  • Android OS version: (add here)
  • Devices affected: (add here)
  • Search SDK Version: (add here)
  • Maps SDK/Nav SDK versions (if used): (add here)

Description

I am implementing Offline Search using the Mapbox Search SDK for Android, but the TileStore does not load the tiles for the offline region.

Even when using the sample polygon coordinates from the official SDK documentation, tile loading consistently fails.

As a result:

  • All tiles show erroredResourceCount = 10
  • completedResourceCount = 0
  • The offline index is never created
  • OfflineIndexChangeListener.onIndexReady() does not trigger
  • Offline Search remains non-functional

Expected Behavior

  • Tiles should download successfully
  • Offline index should be built
  • onIndexReady() should be triggered
  • Offline search queries should return results

Actual Behavior

The TileStore load completes with all tiles in error state:

requiredResourceCount: 10
completedResourceCount: 0
erroredResourceCount: 10
completedResourceSize: 0

Since no tiles are downloaded, the offline search index never initializes.


Steps to Reproduce

  1. Create a TileStore instance
  2. Install an offline region using the sample polygon coordinates
  3. Observe the tile loading results (all fail)
  4. Add an OfflineIndexChangeListener
  5. Note that onIndexReady() never triggers

Additional Notes

Please confirm:

  • Whether the sample offline region tiles are still available
  • Whether the polygon area requires updated coordinates
  • Or if this is a regression in TileStore tile loading

This issue blocks offline search implementation in the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions