Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix locationService treating success as errors #13

Closed
wants to merge 1 commit into from

Conversation

hoisel
Copy link
Contributor

@hoisel hoisel commented Aug 31, 2018

Hi,
I'm using cordova-plugin-background-geolocation and getting a warning after location post:

pidcat

Is the message and return following this comparison right?

if (responseCode >= 200 && responseCode < 300) {

If the status code is 200 and, as stated, it's correct. Should'nt it return true, then the location would be deleted? Also, shouldn't the log message be positive?

The location is being saved as pending location even though the post worked (200/):

fix #12

@mauron85
Copy link
Owner

mauron85 commented Aug 31, 2018

Thank you!. Obviously there is a bug in post location response handling. Will merge.

@@ -629,9 +629,11 @@ private boolean postLocation(BackgroundLocation location) {
if (mListener != null)
mListener.onRequestedAbortUpdates();
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please remove this redundant space?

@mauron85
Copy link
Owner

Merged! Thank you.

@mauron85 mauron85 closed this Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post success logging error and setting location as pending
2 participants