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

Check for network connectivity before requesting resources #6042

Closed

Description

@danswick

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

Activity

  1. added
    Android
    on Aug 17, 2016
  2. added a commit that references this issue on Aug 23, 2016
  3. added a commit that references this issue on Aug 23, 2016
  4. added 3 commits that reference this issue on Aug 24, 2016
  5. added a commit that references this issue on Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions