P2PSDK follows host operating-system policy. No wrapper adds boot autostart, force-closed-app recovery, or system sleep prevention.
Platform behavior
Section titled “Platform behavior”| Platform | Background behavior |
|---|---|
| Android | Optional SDK foreground service while the process remains alive; requires explicit builder opt-in and application manifest setup |
| iOS | Normal iOS suspension rules apply; the SDK declares no background-mode bypass |
| Electron | Optional main-process lifetime after all windows close; no OS service or sleep blocker |
| Node.js | Runs while the host process remains alive |
| Windows | Continues while the normal desktop process remains alive, including minimized windows |
| Linux | Runs while the owning process and SDK handle remain alive |
Product expectations
Section titled “Product expectations”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.
Test conditions
Section titled “Test conditions”- 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.
Power and battery policy
Section titled “Power and battery policy”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.