title: Android - FCM - onRefreshToken never called
body: <p>I just use Google Sign in with Firebase Authentication. I would like use FCM.
  I follow firebase documentation but onRefreshToken is never called.</p>
  
  <p>For the moment i call manually :</p>
  
  <pre><code>FirebaseInstanceId.getInstance().getToken()
  </code></pre>
  
  <p>I use my phone as emulator. If i uninstall/install app "onTokenRefresh" is never called.</p>
  
  <p>I just have :</p>
  
  <blockquote>
    <p>I/FirebaseInitProvider: FirebaseApp initialization successful</p>
  </blockquote>
  
  <p>If my manifest i have :</p>
  
  <pre><code>&lt;service android:name=".ui.service.CloudMessaging"
          android:enabled="true"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>And in "CloudMessaging" :</p>
  
  <pre><code>public class CloudMessaging extends FirebaseInstanceIdService {
  
  @Override
  public void onTokenRefresh() {
      String refreshToken = FirebaseInstanceId.getInstance().getToken();
      Log.e("TOTO", refreshToken);
  }
  }
  </code></pre>
  
  <p>Could you help me ? I don't know what i can to do.</p>
  
  <p>Thanks</p>
  
  <p>EDIT : My Graddle file</p>
  
  <p>Graddle Project :</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.3'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
          classpath 'com.google.gms:google-services:3.0.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          maven {
              url "https://jitpack.io"
          }
          maven {
              url "https://oss.sonatype.org/content/repositories/snapshots/"
          }
      }
  }
  </code></pre>
  
  <p>App Graddle :</p>
  
  <pre><code>dependencies {
  compile 'com.android.support:appcompat-v7:25.1.1'
  compile 'com.mcxiaoke.volley:library:1.0.19'
  compile 'com.google.code.gson:gson:2.8.0'
  compile 'com.android.support:design:25.1.1'
  compile 'com.android.support:support-v4:25.1.1'
  compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
  compile 'id.zelory:compressor:1.0.4'
  compile 'com.squareup.picasso:picasso:2.5.2'
  compile 'com.github.andyxialm:ColorDialog:1.0.0'
  compile 'com.github.GrenderG:Toasty:1.1.3'
  compile 'com.google.firebase:firebase-ads:10.0.1'
  compile 'com.github.chrisbanes:PhotoView:1.3.1'
  compile 'com.android.support:cardview-v7:25.1.1'
  compile 'com.google.firebase:firebase-auth:10.0.1'
  compile 'com.google.android.gms:play-services-auth:10.0.1'
  compile 'com.google.firebase:firebase-messaging:10.0.1'
  }
  
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>