Skip to content

Background execution

P2PSDK follows host operating-system policy. No wrapper adds boot autostart, force-closed-app recovery, or system sleep prevention.

PlatformBackground behavior
AndroidOptional SDK foreground service while the process remains alive; requires explicit builder opt-in and application manifest setup
iOSNormal iOS suspension rules apply; the SDK declares no background-mode bypass
ElectronOptional main-process lifetime after all windows close; no OS service or sleep blocker
Node.jsRuns while the host process remains alive
WindowsContinues while the normal desktop process remains alive, including minimized windows
LinuxRuns while the owning process and SDK handle remain alive

Do not promise continuous earning when the operating system suspends or terminates the application. Explain background behavior in terms appropriate to the platform and ensure rewards depend on eligible participation, not merely an enabled preference.

  • Application foregrounded and minimized.
  • Screen off and device idle.
  • Notification permission denied on Android.
  • Android foreground-service start rejected by OS policy.
  • iOS background and foreground transitions on a real device.
  • Electron all windows closed with background mode enabled and disabled.
  • Host process shutdown, force close, reboot, and system sleep.

The runtime can pause or reconnect according to assigned battery policy. A LowBattery disconnect is intentional; do not immediately counteract it with an application reconnect loop.