Class BatchPushHelper


  • public class BatchPushHelper
    extends java.lang.Object
    Set of helper methods shared between BatchPushNotificationPresenter and methods exposed to devs via the push module
    • Constructor Summary

      Constructors 
      Constructor Description
      BatchPushHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canDisplayPush​(android.content.Context context, InternalPushData batchData)
      This method checks: - If this notification is for the current Install ID (if available) It used to do other stuff as in deduplicate notifications but that's been reworked.
      static android.os.Bundle firebaseMessageToReceiverBundle​(com.google.firebase.messaging.RemoteMessage message)
      Convert a Firebase RemoteMessage to a bundle, for compatibility with all the methods that used to deal with a BroadcastReceiver started by GCM
      • Methods inherited from class java.lang.Object

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

      • BatchPushHelper

        public BatchPushHelper()
    • Method Detail

      • canDisplayPush

        public static boolean canDisplayPush​(android.content.Context context,
                                             InternalPushData batchData)
        This method checks: - If this notification is for the current Install ID (if available) It used to do other stuff as in deduplicate notifications but that's been reworked.
      • firebaseMessageToReceiverBundle

        @Nullable
        public static android.os.Bundle firebaseMessageToReceiverBundle​(@Nullable
                                                                        com.google.firebase.messaging.RemoteMessage message)
        Convert a Firebase RemoteMessage to a bundle, for compatibility with all the methods that used to deal with a BroadcastReceiver started by GCM