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

Post success logging error and setting location as pending #12

Closed
hoisel opened this issue Aug 31, 2018 · 1 comment · Fixed by hoisel/background-geolocation-android#1
Labels
bug Something isn't working

Comments

@hoisel
Copy link
Contributor

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/):

@hoisel hoisel changed the title Post success showing logging error and setting location as pending Post success logging error and setting location as pending Aug 31, 2018
hoisel added a commit to hoisel/background-geolocation-android that referenced this issue Aug 31, 2018
@hoisel
Copy link
Contributor Author

hoisel commented Aug 31, 2018

Pull request proposed in #13 .

@hoisel hoisel reopened this Aug 31, 2018
@mauron85 mauron85 added the bug Something isn't working label Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants