title: Android rxjava retrofit chain calls not working
body: <p>List item</p>
  
  <p>I very new to RXJava iam using  retrofit to make api via Rxjava flatmaps calls in android. My auth activity divided in three parts in </p>
  
  <ol>
  <li>First part make call to login.</li>
  <li>After successful login get user previous details if he is existing
  user.</li>
  <li>After then update firebase fcm token to database.</li>
  </ol>
  
  <p>But here only first flatmap only executed remaining flatmap  not executing</p>
  
  <p>here is my code</p>
  
  <pre><code> Auth auth = new Auth();
                  auth.setEmail(email);
                  auth.setPassword(password);
                  authUser.createUser(auth)
                         .flatMap( response -&gt; {
                          //Only this block is executed
                             Log.d("FlatMap1", String.valueOf(response.code()));
                             if(response.code() == 200) {
                                 String token = response.body().getToken();
                                 editor.putString("token", token);
                                 editor.apply();
  
                                 UserId getUser = new UserId();
                                 getUser.setUid(firebaseAuth.getUid());
                                 return userInfo.CurrentUser("barer " + sharedPreferences.getString("token", null), getUser);
  
                             }else return null;
                         })
                          .flatMap( response -&gt; {
                             if(!isNew){
                             Log.d("FlatMap1", String.valueOf(response.code()));
                             if(response.code() == 200) {
                                UserInfo userInfo = response.body.UserInfo();
  
                             }else return null;
                          }else{
                           UpdateFCM updateFCM = new UpdateFCM();
                           updateFCM.setToken(fcmToken);
                           return  updateFcmToken.update("barer 
  "+sharedPreferences.getString("token",null),updateFCM);
                          }
                         }).subscribeOn(Schedulers.io())
                          .observeOn(AndroidSchedulers.mainThread())
                          .unsubscribeOn(Schedulers.io())
                          .subscribe(new Observer&lt;Response&lt;Void&gt;&gt;() {
                              @Override
                              public void onSubscribe(Disposable d) {
  
                              }
  
                              @Override
                              public void onNext(Response&lt;Void&gt; voidResponse) {
                                  Log.d("FlatMap3",String.valueOf(voidResponse.code()));
                                  if(voidResponse.code() == 200){
                                      Toast.makeText(getApplicationContext(),"Login success",Toast.LENGTH_SHORT).show();
                                      finish();
                                  }
                              }
  
                              @Override
                              public void onError(Throwable e) {
  
                              }
  
                              @Override
                              public void onComplete() {
  
                              }
                          });
  </code></pre>
  
  <p>So what was wrong
  and don't make duplicate and down vote;</p>