Package com.swrve.sdk
Class SwrvePushServiceDefault
- java.lang.Object
-
- com.swrve.sdk.SwrvePushServiceDefault
-
public class SwrvePushServiceDefault extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SwrvePushServiceDefault()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
handle(android.content.Context context, android.content.Intent intent)
Use this method to override Swrve's implementation of another push provider such as GcmListenerService with your own implementation.static boolean
handle(android.content.Context context, android.os.Bundle extras)
Use this method to process a swrve rich notification.static boolean
handle(android.content.Context context, java.util.Map<java.lang.String,java.lang.String> data)
Use this method to override Swrve's implementation of another push provider such as FirebaseInstanceIdService with your own implementation.
-
-
-
Method Detail
-
handle
public static boolean handle(android.content.Context context, java.util.Map<java.lang.String,java.lang.String> data)
Use this method to override Swrve's implementation of another push provider such as FirebaseInstanceIdService with your own implementation. See samples directory in the public repository on how to use it.- Parameters:
context
- A contextdata
- A map containing swrve properties used for silent push or rich notifications.- Returns:
- true if successfully scheduled, false otherwise
-
handle
public static boolean handle(android.content.Context context, android.content.Intent intent)
Use this method to override Swrve's implementation of another push provider such as GcmListenerService with your own implementation. See samples directory in the public repository on how to use it.- Parameters:
context
- A contextintent
- An intent containing a bundle of swrve properties used for silent push or rich notifications.- Returns:
- true if successfully scheduled, false otherwise
-
handle
public static boolean handle(android.content.Context context, android.os.Bundle extras)
Use this method to process a swrve rich notification. Requires swrve push properties to be part of the bundle.- Parameters:
context
- A contextextras
- A bundle containing swrve properties used for silent push or rich notifications.- Returns:
- true if successfully scheduled, false otherwise
-
-