Skip to content

Only do the WiFi connectivity check if the associated option is enabled #5705

Open
@laurent22

Description

@laurent22

In order to get the "Synchronise only over WiFi connection" option to work the mobile application checks for WiFi connectiviy on startup:

this.unsubscribeNetInfoHandler_ = NetInfo.addEventListener(({ type, details }) => {

And doing so makes a call to "clients3.google.com": react-native-netinfo/react-native-netinfo#212

If it's possible, this call should only happen when the "Synchronise only over WiFi connection" connection is enabled. Due to privacy concerns over using a Google URL for the check, we could also look at using an alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogWe'll get to it... eventually...enhancementFeature requests and code enhancementsmobileAll mobile platforms

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions