public BaasResult < BaasUser > loginSync ( String registrationId ) { BaasBox box = BaasBox . getDefault ( ) ; if ( password == null ) throw new IllegalStateException ( "password cannot be null" ) ; NetworkTask < BaasUser > task = new LoginRequest ( box , this , registrationId , RequestOptions . DEFAULT , null ) ; return box . submitSync ( task ) ; }
Synchronously logins the user with password and registrationId obtained through gcm .