autoPauseOnBackground property

bool autoPauseOnBackground
final

Whether to automatically pause queries when app goes to background

When true, queries will automatically pause when the app lifecycle state changes to paused, inactive, or hidden. This is useful for mobile apps to save battery and reduce unnecessary network requests.

For desktop/web apps where users frequently switch windows, consider keeping this false (default) to maintain query activity.

Default: false (opt-in for battery optimization)

Implementation

final bool autoPauseOnBackground;