Class AEPMessagingService

  • All Implemented Interfaces:

    
    public class AEPMessagingService
    
                        

    This class is the entry point for all Adobe Campaign Classic out-of-the-box push template notifications received from Firebase.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean handleRemoteMessage(@NonNull() Context context, @NonNull() RemoteMessage remoteMessage) Builds an CampaignClassicPushPayload then constructs a Notification using the RemoteMessage payload.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AEPMessagingService

        AEPMessagingService()
    • Method Detail

      • handleRemoteMessage

         static boolean handleRemoteMessage(@NonNull() Context context, @NonNull() RemoteMessage remoteMessage)

        Builds an CampaignClassicPushPayload then constructs a Notification using the RemoteMessage payload. The built notification is then passed to the to be displayed. If any exceptions are thrown when building the AEPPushPayload or Notification, this method will return false signaling that the remote message was not handled by the AEPMessagingService.

        Parameters:
        context - the application Context
        remoteMessage - the RemoteMessage containing a push notification payload
        Returns:

        boolean signaling if the AEPMessagingService handled the remote message