@Override
  public void initSplash(ConfigSplash configSplash) {

    FirebaseMessaging.getInstance().subscribeToTopic(Define.APP_NAME);
    mDeviceToken = FirebaseInstanceId.getInstance().getToken();
    Log.d("token", "Refreshed token: " + mDeviceToken);

    mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

    Bundle bundle = new Bundle();
    bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "SplashScreen");
    mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.APP_OPEN, bundle);

    configSplash.setBackgroundColor(R.color.accent);
    configSplash.setAnimCircularRevealDuration(Define.SPLASH_SCREEN_BACKGROUND_TIME);
    configSplash.setRevealFlagX(Flags.REVEAL_RIGHT);
    configSplash.setRevealFlagY(Flags.REVEAL_BOTTOM);

    configSplash.setLogoSplash(R.drawable.logo_logishub);
    configSplash.setAnimLogoSplashDuration(Define.SPLASH_SCREEN_LOGO_TIME);
    configSplash.setAnimLogoSplashTechnique(Techniques.Bounce);

    configSplash.setTitleSplash("NeoSystems co., Ltd.");
    configSplash.setTitleTextColor(R.color.monsoon);
    configSplash.setTitleTextSize(16f);
    configSplash.setAnimTitleDuration(Define.SPLASH_SCREEN_TEXT_TIME);
    configSplash.setAnimTitleTechnique(Techniques.FadeIn);
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    ParseAnalytics.trackAppOpenedInBackground(getIntent());

    FirebaseMessaging.getInstance().subscribeToTopic("news");

    FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View view) {
            Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                .setAction("Action", null)
                .show();
          }
        });
  }