KlaviyoPushService

open class KlaviyoPushService : FirebaseMessagingService

Implementation of the FCM messaging service that runs when the parent application is started This service handles all the interaction with FCM service that the SDK needs

If the parent application has their own FCM messaging service defined they need to ensure that the implementation details of this service are carried over into their own

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onMessageReceived(message: RemoteMessage)

This method is invoked from FCM SDK when a "notification" message is received while the app is in the foreground, and when a "data" message is received regardless of the app's status

Link copied to clipboard
open override fun onNewToken(newToken: String)

Called when FCM SDK receives a newly registered token