Network status API shows home WiFi as "4G" effective type, and sets the "type" to undefined

Open
#710 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 13 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
api, web-dev

Research direction

Start by reproducing the Network Status API behavior described on a Kubuntu laptop running regular Chrome, then compare it with the reported mobile behavior. Investigate the relevant sample entry point and verify that home WiFi reports an appropriate effective type and a defined type when the issue is fixed.

Written by the indexing model from the issue text.

Description

Is this some sort of intentional thing to avoid revealing when you're at home or something?

It makes it fairly useless for the intended "detect when to prefetch" use case, because 4G is metered, and WiFi is not(Well, at least until 1TB for most...), and any dynamic data saving attempt should take that into account.

Edit: On mobile, this seems to work perfectly, it's only an issue on my Kubuntu laptop running regular Chrome. Very odd!

Dominant language
JavaScript
Stars
5.9k
Forks
2.4k
Avg merge
12d 12h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GoogleChrome/samples

All issues in GoogleChrome/samples

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.