public class BrazeFirebaseMessagingService
extends FirebaseMessagingService
Constructor and Description |
---|
BrazeFirebaseMessagingService() |
Modifier and Type | Method and Description |
---|---|
static boolean |
handleBrazeRemoteMessage(android.content.Context context,
RemoteMessage remoteMessage)
Consumes an incoming
RemoteMessage if it originated from Braze. |
static boolean |
isBrazePushNotification(RemoteMessage remoteMessage)
Determines if the Firebase
RemoteMessage originated from Braze and should be
forwarded to handleBrazeRemoteMessage(Context, RemoteMessage) . |
void |
onMessageReceived(RemoteMessage remoteMessage) |
void |
onNewToken(java.lang.String newToken) |
public void onNewToken(java.lang.String newToken)
public void onMessageReceived(RemoteMessage remoteMessage)
public static boolean handleBrazeRemoteMessage(android.content.Context context, RemoteMessage remoteMessage)
RemoteMessage
if it originated from Braze. If the RemoteMessage
did
not originate from Braze, then this method does nothing and returns false.remoteMessage
- The RemoteMessage
from Firebase.RemoteMessage
originated from Braze and was consumed. Returns false
if the RemoteMessage
did not originate from Braze or otherwise could not be forwarded.public static boolean isBrazePushNotification(RemoteMessage remoteMessage)
RemoteMessage
originated from Braze and should be
forwarded to handleBrazeRemoteMessage(Context, RemoteMessage)
.remoteMessage
- The RemoteMessage
from FirebaseMessagingService#onMessageReceived(RemoteMessage)
RemoteMessage
originated from Braze or otherwise
should be passed to handleBrazeRemoteMessage(Context, RemoteMessage)
.