Handling events that happen with the SDK can allow for a richer UX experience for your end users. We recommend you handle each event (if applicable) that happen within each component of the library.
Before continuing, make sure you have read Integrating Push Notifications to allow for proper remote event handling involving the
AuthRequestManager. Opting to skip this section will only allow for local events to trigger.
Many of our method calls are asynchronous events. As such, they should be handled appropriately to correctly display the proper information back to the end-user. Both platforms handle each event in a similar manner internally but may require different approaches.
For Android, we allow for
Event objects to be registered with the appropriate manager. Some method calls also allow for specific
Callback objects to be passed in as an argument callback. Be careful when using both the event system through the SDK’s managers and the callback approach as this may lead to multiple calls to the same event.
For iOS, we allow for
Completion blocks to be included in many of our function calls. Observers can also be registered through the