Initialization

Call ActiveCustomerSDKFactory.init() to receive an instance of BringgActiveCustomerSDKClient

BringgSDKActiveCustomerClient

This interface exposes the following methods:

  1. getActiveCustomerActions - API for sdk actions (login, start order, etc.)
  2. isLoggedIn LiveData
  3. isOnline LiveData
  4. activeTask LiveData

Initialization Dependencies

The init method of ActiveCustomerSDKFactory receives 3 mandatory params:

  1. Context: regular Android Context.
  2. NotificationProvider
  3. SdkSettings

NotificationProvider

This interface is required by the initiating class to provide a foreground notification for the sdk to be able to run in the background.
*Both methods can return the same notification

getShiftNotification
getBackgroundLongProcessNotification

SDKSettings

use SdkSettings.Builder().build() for default config or configure the experience to match your use-case