PushMessageManager
Abstract class for managing push messages in the PushFeature module. Provides APIs for token management, message handling, and push enablement.
This class serves as the public interface for push functionality, similar to the original PushMessageManager in the main SDK.
Types
Represents the current state of push enablement, providing detailed information about why push notifications might be disabled.
Listener interface for push token refresh events.
Listener interface for silent push messages. Silent push messages are background messages that don't display notifications.
Functions
Disables push messaging in the SDK. Calling this will result in no push messages being sent to the device.
Enables push messaging in the SDK. Push messaging is on by default. If after enabling push you still don't see notifications then check the system notification settings.
Returns information that can help investigate push message issues. Please be sure to provide this information when submitting a request for support.
Returns the current state of push messaging enablement with detailed information about why push notifications might be disabled.
Returns the push token used to push. This is either the value retrieved by the SDK or the one provided in setPushToken.
Handles the remote message payload for any message sent from the Marketing Cloud.
Handles the push message payload for any message sent from the Marketing Cloud.
Returns whether or not push messaging is enabled. If false then no push messages will be sent to the device.
Registers the provided SilentPushListener.
Registers the provided PushTokenRefreshListener.
Only call this method if you are handling the request, and refresh of, the push token from Google. Set the push token to be used by the Marketing Cloud to send push messages to the device. The push token is a required value to send a registration payload to the Marketing Cloud so if you fail to set this value you will not see updates to the registration.
Unregisters the provided SilentPushListener.
Unregisters the provided PushTokenRefreshListener.