Package com.swrve.sdk

Class SwrvePushServiceDefault


  • public class SwrvePushServiceDefault
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

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

      • SwrvePushServiceDefault

        public SwrvePushServiceDefault()
    • 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 context
        data - 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 context
        intent - 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 context
        extras - A bundle containing swrve properties used for silent push or rich notifications.
        Returns:
        true if successfully scheduled, false otherwise