Package com.batch.android
Class BatchPushHelper
- java.lang.Object
-
- com.batch.android.BatchPushHelper
-
public class BatchPushHelper extends java.lang.ObjectSet of helper methods shared betweenBatchPushNotificationPresenterand 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 booleancanDisplayPush(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.BundlefirebaseMessageToReceiverBundle(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
-
-
-
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
-
-