Newer Version Available

This content describes an older version of this product. View Latest

Determine Online or Offline Status

The Salesforce mobile app, Field Service mobile app, and Lightning Web Components generally, don’t have a supported mechanism for detecting whether a device is online or not. This is by design.

Online vs. offline connectivity is dynamic, and the signal given to the app from the mobile operating system is notoriously unreliable because the state of connectivity changes frequently. In general, our design goal is that LWCs work offline first, and treat being offline as a normal condition, not a failure. We recommend your components adhere to this practice.