Common application options
Section titled “Common application options”| Concept | Android | iOS | Node.js | Electron | .NET |
|---|---|---|---|---|---|
| API key | builder(activity, apiKey) | createWithConsent(..., apiKey:) | Constructor argument | apiKey | ApiKey |
| Debug | .debug(boolean) | debug: | debug | debug | Debug |
| Identity seed | .deviceIdentitySeed(...) | deviceIdentitySeed: | deviceIdentitySeed | deviceIdentitySeed | DeviceIdentitySeed |
| Identity path | Managed | Managed | identityPath | identityPath | IdentityPath |
| Connected | .onConnect(...) | onConnect | callback or event | Forwarded to Node | OnConnect / Connected |
| Disconnected | .onDisconnect(...) | onDisconnect | callback or event | Forwarded to Node | OnDisconnect / Disconnected |
| Background | .enableBackgroundMode(true) | OS policy only | Host process lifetime | backgroundMode: true | Host process lifetime |
Consent configuration
Section titled “Consent configuration”| Platform | URL | Revoke URL | Version | Public key |
|---|---|---|---|---|
| Android artifact | p2psdkConsentUrl | p2psdkConsentRevokeUrl | p2psdkConsentVersion | p2psdkConsentPublicKeyPem |
| iOS app | P2PSDKConsentURL | P2PSDKConsentRevokeURL | P2PSDKConsentVersion | P2PSDKConsentPublicKeyPEM |
| Electron | consentUrl | Environment variable | consentVersion | consentPublicKeyPem |
| Windows WPF | ConsentUrl | Environment variable | ConsentVersion | ConsentPublicKeyPem |
| Node without UI | Approved receipt source | Environment variable | Receipt source | Receipt source |
Android application code receives a preconfigured AAR. Do not rebuild or override its consent configuration outside the artifact-publication process supplied during onboarding.
Environment variables
Section titled “Environment variables”| Variable | Consumer | Purpose |
|---|---|---|
P2P_SDK_NATIVE_LIB | Node.js | Absolute .so or .dll diagnostic/onboarding override |
P2P_SDK_NATIVE_TARGET | Node.js source layout | Repository target-triple override |
P2P_SDK_IDENTITY_FILE | Node.js / Electron | Persistent generated identity record path |
P2P_SDK_CONSENT_REVOKE_URL | Node.js, Electron, .NET | Consent revoke endpoint supplied during onboarding |
Set an environment variable before the wrapper performs the related operation. Do not expose registry credentials or receipt values through client-visible environment injection.
SDK-owned settings
Section titled “SDK-owned settings”Application code cannot set:
- Runtime connection URL or bearer token.
- Reconnect delay and retry policy.
- DNS servers or selection policy.
- Battery thresholds and pause policy.
- WebSocket heartbeat or transport limits.
- Wire-protocol features.
These values are controlled by the SDK runtime and assigned policy. A custom identity seed is also usually unnecessary; use it only when your application already owns a stable per-install identifier.