SDK Surface
Use the network observer as a development diagnostic tool. It can expose request metadata, response metadata, and payloads depending on platform, so avoid storing raw logs that may contain user content or credentials.
Parameters
Network Activity
Observe network activity only while debugging an integration, then unsubscribe or dispose the observer when the debug session ends.Error Handling
SDK operations throw or emit platform-native errors. Convert those errors to SDK error enums before deciding whether to retry, show a user message, or end the session.Common SDK Error Constants
Production Checklist
- Disable broad network payload logging outside development builds.
- Redact tokens, authorization headers, user identifiers, and message or post bodies before writing logs.
- Keep retry logic bounded and avoid retrying authorization or global-ban errors.
- Show user-friendly messages in the app UI; keep SDK codes in developer logs and support diagnostics.
- Unsubscribe or dispose observers when the screen, debug session, or application lifecycle no longer needs them.