Closed Sourabhjain90 closed 6 years ago
Waiting for reply..
Is there any error? Maybe location is not available and no callback is called?
Please format attached code next time.
@Sourabhjain90 closing this issue right now. Please reopen with more context.
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();
}
});