public void forceSessionsRegistration(final ThirdPartyRegistrationListener listener){
  if ((mRegistrationState == RegistrationState.SERVER_REGISTERED) || (mRegistrationState == RegistrationState.GCM_REGISTRED)) {
    mRegistrationState=RegistrationState.GCM_REGISTRED;
    register(listener);
  }
 else {
    if (null != listener) {
      try {
        listener.onThirdPartyRegistrationFailed();
      }
 catch (      Exception e) {
        Log.e(LOG_TAG,"forceSessionsRegistration failed " + e.getLocalizedMessage());
      }
    }
  }
}

public void forceSessionsRegistration ( final ThirdPartyRegistrationListener listener ) { if ( ( mRegistrationState == RegistrationState . SERVER_REGISTERED ) || ( mRegistrationState == RegistrationState . GCM_REGISTRED ) ) { mRegistrationState = RegistrationState . GCM_REGISTRED ; register ( listener ) ; } else { if ( null != listener ) { try { listener . onThirdPartyRegistrationFailed ( ) ; } catch ( Exception e ) { Log . e ( LOG_TAG , "forceSessionsRegistration failed " + e . getLocalizedMessage ( ) ) ; } } } }
force to register the sessions to the third party servers . the gcm registration must have been done and there is no pending registration .
