code: @Override
      public void onTokenRefresh() {
          EasyGcm.Logger.d("Received token refresh broadcast");
  
          EasyGcm.removeRegistrationId(getApplicationContext());
  
          if (GcmUtils.checkCanAndShouldRegister(getApplicationContext())) {
              startService(GcmRegistrationService.createGcmRegistrationIntent(this));
          }
      }
docs: Called if InstanceID token is updated. This may occur if the security of
  the previous token had been compromised. This call is initiated by the
  InstanceID provider.