FcmConfig

class FcmConfig(isRegistrationEnabled: Boolean, senderId: String?)

Create an instance of Firebase Messaging Config.

Author

Umang Chamaria

Parameters

senderId

sender-id/project id for the FCM project.

**Sender id is a mandate when you are using Instant apps and MoEngage SDK is

  • registering for push.**

isRegistrationEnabled

true if you want the MoEngage SDK to register for Push else false.

Constructors

FcmConfig
Link copied to clipboard
fun FcmConfig(isRegistrationEnabled: Boolean)

Create an instance of Firebase Messaging Config.

FcmConfig
Link copied to clipboard
fun FcmConfig(isRegistrationEnabled: Boolean, senderId: String?)

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

isRegistrationEnabled
Link copied to clipboard
var isRegistrationEnabled: Boolean

If true sdk will try to register for FCM push token.

senderId
Link copied to clipboard
var senderId: String?

Sender-id also known as project id of the FCM project. Required only if instant app is enabled.