package io.rapidpro.sdk.sample;

import io.rapidpro.sdk.FcmClient;
import io.rapidpro.sdk.UiConfiguration;
import io.rapidpro.sdk.sample.services.PushRegistrationService;

/**
 * Created by John Cordeiro on 5/10/17.
 * Copyright © 2017 rapidpro-android-sdk, Inc. All rights reserved.
 */

public class Application extends android.app.Application {

    @Override
    public void onCreate() {
        super.onCreate();

        FcmClient.initialize(new FcmClient.Builder(this)
                .setHost("https://rapidpro.ilhasoft.mobi/")
                .setToken("f417616c57339f28e07bcedf8d4f23f74614bcb5")
                .setChannel("7815c7fb-eed7-41fe-b585-2a244d398fcb")
                .setRegistrationServiceClass(PushRegistrationService.class)
                .setUiConfiguration(new UiConfiguration()
                        .setPermissionMessage("Please give me permission to open floating chat!")
                        .setTheme(R.style.AppTheme_Blue)
                        .setIconResource(R.mipmap.ic_launcher)
                        .setTitleString("RapidPRO Sample SDK")));
    }
}

@@ -26,16 +26,116 @@
 ample;%0A%0A
+import android.support.annotation.ColorRes;%0Aimport android.support.v4.content.res.ResourcesCompat;%0A%0A
 import i
@@ -1151,42 +1151,330 @@
 .set
-TitleString(%22RapidPRO Sample SDK%22)
+IconFloatingChat(R.mipmap.ic_launcher)%0A                        .setTitleColor(getColorCompat(android.R.color.white))%0A                        .setTitleString(%22RapidPRO Sample SDK%22)));%0A    %7D%0A%0A    private int getColorCompat(@ColorRes int colorRes) %7B%0A        return ResourcesCompat.getColor(getResources(), colorRes, getTheme(
 ));%0A

Add missing ui configuration on sample project