Initialize the SDK with Your Credentials

Learn how to initialize the Brand Messenger Legacy SDK with your Android project

Once the sync is successful, initialize the Brand Messenger Legacy SDK in MainApplication's onCreate.

In the examples below, replace:

  • ANDROID_INTEGRATION_ID with your Android integration ID.
Settings settings = new Settings(ANDROID_INTEGRATION_ID);
BrandMessenger.init(this, settings, new BrandMessengerCallback<InitializationStatus>() {
    @Override
    public void run(@NonNull Response<InitializationStatus> response) {
    }
});