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

Background Location Traking is not working after phone restart. #2043

Closed
Saliheen opened this issue Jun 4, 2024 · 11 comments
Closed

Background Location Traking is not working after phone restart. #2043

Saliheen opened this issue Jun 4, 2024 · 11 comments
Labels

Comments

@Saliheen
Copy link

Saliheen commented Jun 4, 2024

Your Environment

  • Plugin version: ^4.16.0
  • Platform: Android
  • OS version:
  • Device manufacturer / model:
  • React Native version (react-native -v): 0.72.6
    Plugin config
    const state:State = await BackgroundGeolocation.ready({ // Debug reset: false, debug: true, logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE, transistorAuthorizationToken: token, // Geolocation desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH, distanceFilter: 5, stopTimeout: 10, // Permissions locationAuthorizationRequest: 'Always', backgroundPermissionRationale: { title: "Allow {applicationName} to access this device's location even when closed or not in use.", message: "This app collects location data to enable recording your trips to work and calculate distance-travelled.", positiveAction: 'Change to "{backgroundPermissionOptionLabel}"', negativeAction: 'Cancel' }, // HTTP & Persistence autoSync: true, maxDaysToPersist: 14, // Application stopOnTerminate: false, startOnBoot: true, enableHeadless: true });

Expected Behavior
Background location tracking should start working automatically when I restart phone.

Actual Behavior

Background location tracking is not working after phone restart

Steps to Reproduce

I am using demo app for react native.

PASTE_YOUR_LOGS_HERE
@christocracy
Copy link
Member

Unlock the phone after restart. Go outside for a walk of at least 200 meters.

@Saliheen
Copy link
Author

Saliheen commented Jun 4, 2024

Unlock the phone after restart. Go outside for a walk of at least 200 meters.

I have restarted the phone and unclocked it. Then i have drived for 5 kilometers but background location tracking didnt start working. I have also used "Mock Locations" application but background location tracking didt start.

@christocracy
Copy link
Member

The plug-in doesn’t engage from a mock location app.

The issue template asked you for device model. You don’t provide it.

see https://dontkillmyapp.com

@christocracy
Copy link
Member

christocracy commented Jun 4, 2024

reset: false

Don’t use reset: false if you don’t know what it does. 99% of users should not use that.

@Saliheen
Copy link
Author

Saliheen commented Jun 4, 2024

The plug-in doesn’t engage from a mock location app.

The issue template asked you for device model. You don’t provide it.

see https://dontkillmyapp.com

My device model is Infinix X682B

@christocracy
Copy link
Member

See wiki “Debugging”. Learn to fetch plug-in logs using .emailLog.

see https://dontkillmyapp.com

@Saliheen
Copy link
Author

Saliheen commented Jun 4, 2024

See wiki “Debugging”. Learn to fetch plug-in logs using .emailLog.

see https://dontkillmyapp.com

ok

@Saliheen
Copy link
Author

Saliheen commented Jun 5, 2024

We have installed the app on five different phones and restarted each one. We then drove for more than 6 kilometers, but the background location tracking did not start. Additionally, we walked around 1 kilometer, but the background location tracking still did not activate. This feature is essential for our needs, and we require it as soon as possible. Could you please provide a solution or suggest a workaround?
Thank you.

@christocracy
Copy link
Member

christocracy commented Jun 5, 2024

See wiki “Debugging”. Learn to fetch plug-in logs via .emailLog method.

I’m fieldtesting daily with a variety of phones almost daily for 9 years. I experience no issues.

did you follow the directions and modify de ice settings according to https://dontkillmyapp.com?

Copy link

github-actions bot commented Jul 6, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 6, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants