public final class WDWPushHelper
extends java.lang.Object
forwardMessage(RemoteMessage, Context)notifyToken(Context)
If an own instance of the FirebaseMessagingService is used, the methods provided within
the WDWPushHelper should be used.
| Modifier and Type | Method and Description |
|---|---|
static void |
forwardMessage(RemoteMessage remoteMessage,
android.content.Context context)
Forwards push messages into the WDW-SDK.
|
static void |
notifyToken(android.content.Context context)
Informs the WDW-SDK that a new token is available.
|
public static void forwardMessage(RemoteMessage remoteMessage,
android.content.Context context)
If an own instance of the FirebaseMessagingService is used, this method should be called to forward the push message into the WDW-SDK.
This method with only forward push messages into the WDW-SDK if it is configured using an
instance of the PushConfig class.
remoteMessage - The unmodified push messagecontext - The application contextjava.lang.IllegalArgumentException - in case either the remoteMessage or context
parameter is null.public static void notifyToken(android.content.Context context)
If an own instance of the FirebaseMessagingService is used, this method should be called to notify the WDW-SDK that a new token is available.
This method will only work if the WDW-SDK is configured using an instance of the PushConfig
class.
context - The application contextjava.lang.IllegalArgumentException - in case the context parameter is null.