This guide outlines recommended practices for implementing the Proview SDK to ensure optimal performance, reliability, and user experience.
Error Handling
Important: When errors thrown by callback functions are not handled by the parent application, Proview will swallow these errors to prevent disruption of the SDK’s core functionality. Always implement proper error handling within your callback functions.
Callback Error Management
When implementing callback functions for session hooks or API methods, always include proper error handling:
Global Error Handler
Register a global error handler to catch SDK-level errors: