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

Location update event not fired #6

Closed
panteparak opened this issue Aug 17, 2016 · 6 comments
Closed

Location update event not fired #6

panteparak opened this issue Aug 17, 2016 · 6 comments

Comments

@panteparak
Copy link

panteparak commented Aug 17, 2016

I have just set up on my Android Emulator (Genymotion) and tried changing GPS location from command line tool as well from provided Genymotion GUI but the location doesn't seem to be updated. Did i missed config something?

BackgroundGeolocation.configure({
  desiredAccuracy: 0,
  stationaryRadius: 30,
  debug: true,
  distanceFilter: 30,
  startOnBoot: true,
  interval: 1000,
  notificationTitle: "Location Service",
  syncThreshold: 1,
  maxLocations: 1,
  locationProvider: 1,
  fastestInterval: 1000,
  activitiesInterval: 1000,
  stopOnStillActivity: true
});

BackgroundGeolocation.on('location', (location) => {
  console.log("Callback -> Lat: " + location.latitude + ", Long: " + location.longtitude)
  Actions.sendLocation(location);
});

BackgroundGeolocation.on('error', (error) => {
  console.log('[ERROR] BackgroundGeolocation error:', error);
});

BackgroundGeolocation.start(() => {
  console.log('[DEBUG] BackgroundGeolocation started successfully');
});

I have checked device log, only the start message came up

@mauron85
Copy link
Owner

Please test on a real device.

@panteparak
Copy link
Author

@mauron85 Sure, I'll test on a device and get back to you if the problem continues.

@priezz
Copy link

priezz commented Sep 1, 2016

This is something strange with Genymotion. When I have just discovered this plugin it worked. However about a week ago I have noticed that it stopped working and I can't explain why. So I have only the first location and no updates as well.

@mauron85
Copy link
Owner

mauron85 commented Sep 1, 2016

@priezz read my answer regarding genymotion. it is probably the same thing.

mauron85/cordova-plugin-background-geolocation#144 (comment)

@ctubig
Copy link

ctubig commented Apr 15, 2017

Same issue with android 6.0 API 23. Location update not firing.

@mauron85
Copy link
Owner

mauron85 commented Apr 2, 2018

Closing as no response received.

@mauron85 mauron85 closed this as completed Apr 2, 2018
andkom pushed a commit to andkom/react-native-background-geolocation that referenced this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants