Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Check for network connectivity before requesting resources #6042

Closed
danswick opened this issue Aug 16, 2016 · 0 comments · Fixed by #6123
Closed

Check for network connectivity before requesting resources #6042

danswick opened this issue Aug 16, 2016 · 0 comments · Fixed by #6123
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@danswick
Copy link
Contributor

Platform: Android
Mapbox SDK version: 4.2.0

Steps to trigger behavior

  1. Cache offline resources.
  2. Turn airplane mode on.
  3. View offline resources.
  4. Note 404 messages in log.

Expected behavior

SDK loads offline resources before attempted to request hosted resources from Mapbox.

Actual behavior

SDK requests resources already in the offline database despite having no network connectivity.

Per discussion with @bleege, we can adapt a similar approach to the one we use in MapboxEventManager for use in HTTPRequest.

cc @zugaldia @bleege @cammace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants