mcharmas / Android-ReactiveLocation

Small library that wraps Google Play Service API in brilliant RxJava Observables reducing boilerplate to minimum.
2.11k stars 312 forks source link

call method not called in some devices #163

Closed Sourabhjain90 closed 6 years ago

Sourabhjain90 commented 6 years ago

In some devices call method not called

locationProvider.getUpdatedLocation(request) .subscribe(new Action1() { @Override public void call(Location location) { LogManager.d("Location from rx", "" + location); ToastManager.showToast(mContext,"Fetch successfully",true); AppConstants.currentLocation = location; if (mListener != null) { mListener.onLocationDetected(location); } dismissProgressDialog(); } }, new Action1() { @Override public void call(Throwable throwable) { ToastManager.showToast(mContext,"error "+throwable.getMessage(),true); dismissProgressDialog(); } });

Sourabhjain90 commented 6 years ago

Waiting for reply..

mcharmas commented 6 years ago

Is there any error? Maybe location is not available and no callback is called?

Please format attached code next time.

mcharmas commented 6 years ago

@Sourabhjain90 closing this issue right now. Please reopen with more context.