react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Background tracking works on Simulator but not on real device IOS!

Open volondio opened this issue 4 years ago • 6 comments

Issuehunt badges

Your Environment

  • Plugin version: 0.5.3
  • Platform: iOS
  • OS version:14.4
  • Device manufacturer and model: iphone X
  • Running in Simulator: yes iphone 11 simulator 14.4
  • React Native version: 0.59.9
  • Plugin configuration options:
locationProvider: BackgroundGeolocation.RAW_PROVIDER,
startForeground: true,
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 10,
distanceFilter: 10,
locationTimeout: 30,
notificationTitle: "Maschinenring Burgenland",
notificationText: "Arbeitszeit läuft",
debug: false,
startOnBoot: false,
stopOnTerminate: true,
interval: 3000,
fastestInterval: 1500,
activitiesInterval: 3000,
stopOnStillActivity: false,
saveBatteryOnBackground: false,
activityType: "Fitness",
postTemplate: null,
httpHeaders: {
  "X-FOO": "bar",
},

Context

The background tracking works on simulator but not on a real device. On device the tracking stops, after sending the application to the background. I already have set all permissions needed for background tracking. I also set the background capabilities in xcode.

Allow "APP" to also use your location even when youre not using the app?
Keep only while using
Change to always allow

This message is shown in simulator but not on my device. In Simulator the background tracking works fine after submitting the change to always allow button.

Permissions i have set:

Privacy - Location Always and When In Use Usage Description,
Privacy - Location Always Usage Description
Privacy - Location When In Use Usage Description
Privacy - Motion Usage Description

Expected Behavior

The background tracking should work in on a real device too.

Actual Behavior

The background tracking does not work in on a real device.

Possible Fix

I think i just missed any configs because i already tried other libraries but still have the same problem

Steps to Reproduce

Context

I already tried other libraries but still have the same problem.

Debug logs


IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

volondio avatar Feb 20 '21 08:02 volondio

I have the same problem. Is there any fix for that?

sergeylaptev avatar Apr 06 '21 15:04 sergeylaptev

Same problem too. Solution???

ciaoamigoschat avatar Apr 12 '21 16:04 ciaoamigoschat

@sergeylaptev @ciaoamigoschat i have the same problem, did you find the fix?

armandomendivil avatar Apr 23 '21 22:04 armandomendivil

@abner01061998 has funded $5.00 to this issue.


issuehunt-oss[bot] avatar Jun 24 '21 03:06 issuehunt-oss[bot]

@abner01061998 has cancelled funding for this issue.(Cancelled amount: $5.00) See it on IssueHunt

issuehunt-oss[bot] avatar Jun 28 '21 02:06 issuehunt-oss[bot]

@sergeylaptev @ciaoamigoschat How did you solved this issue. I found 3 opened issue related to this but no one answered.

gigby avatar Sep 08 '21 07:09 gigby