Marigold
Keeps track of necessary environment variables provided by the developer or google. Also provides the entry point into Marigold for the developer to retrieve device information.
Properties
Notification Action Tapped Flow - subscribe to this to handle events when notification actions are tapped by the user.
Notification Received Flow - subscribe to this to handle events when notifications are received on the device.
Notification Tapped Flow - subscribe to this to handle events when notifications are tapped by the user.
Functions
Adds listener to be called when a notification action is tapped. This method should be called after startEngine
Adds listener to be called when a notification is received. This method should be called after startEngine
Adds listener to be called when a notification is tapped. This method should be called after startEngine
Gets this devices ID on the Marigold Mobile Platform.
Gets this device's ID on the Marigold Platform. Marigold
Gets this device's ID on the Marigold Platform.
Pass received notification to Marigold Mobile SDK. NOTE: This method should only be called if the app implements its own FirebaseMessagingService instance, in which case it must be called in order to provide FCM notifications to the Marigold Mobile SDK for processing. Otherwise this will be handled automatically by the Marigold Mobile SDK.
Log a registration event with Marigold. This is used to log users signing in and out of the app. Pass the ID you wish to use for the sign-in or null for a sign-out.
Handles the flow for requesting the android.Manifest.permission.POST_NOTIFICATIONS permission required for push notifications from Android 13(T)+. This is a no-op on earlier Android versions and will return NotificationPermissionRequestResult.PERMISSION_NOT_REQUIRED.
Pass the FCM token into the Marigold Mobile SDK. NOTE: This method should only be called if the app implements its own FirebaseMessagingService instance, in which case it must be called in order to provide the FCM token to the Marigold Mobile Platform. Otherwise this will be handled automatically by the Marigold Mobile SDK.
Set whether location tracking based on IP Address will be enabled or disabled by default when a device is created. This method must be called before startEngine.
Enabled location tracking based on IP Address. Tracking location tracking is enabled by default. Use this method for users who may not want to have their location tracked at all.
Enabled location tracking based on IP Address. Tracking location tracking is enabled by default. Use this method for users who may not want to have their location tracked at all.
Enabled location tracking based on IP Address. Tracking location tracking is enabled by default. Use this method for users who may not want to have their location tracked at all.
Enables or disables the display of In-App Notifications. Must be called before startEngine. In-App Notifications are enabled by default.
Sets the configuration of notifications built by Marigold.
Initialises The Marigold Mobile SDK. See documentation Connecting to Marigold Mobile for usage.
Checks the notifications enabled setting for the app and updates the device on the Marigold Mobile platform if required. From Android 13(T)+ it is recommended that this be called in when the result of the android.Manifest.permission.POST_NOTIFICATIONS permission is received to ensure the platform has the correct setting.
Updates Marigold with this device's location.