subscribeToNewInAppMessages

Subscribes to in-app message events. The subscriber callback will be called when a new in-app message is sent. The subscriber will be called with a InAppMessageEvent.

Subscriptions should be cleaned up manually by calling IBraze.removeSingleSubscription.

All events are triggered from background threads and isolate any encountered exceptions. If you need to do work on the UI thread in response to an event, you will need to coordinate that in the IEventSubscriber's trigger method.

Parameters

subscriber

A callback that should be executed when a new In-App Message is sent.