-
Notifications
You must be signed in to change notification settings - Fork 426
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
When I start background geolocation tracking, the initial state is is_moving = false. When my device starts moving, it takes some time to activate background geolocation tracking, and when I stop moving, it takes too much time to change is_moving = false. What should I do? #2228
Comments
See wiki “Philosophy of Operation”. |
Also, the issue template asked for a lot of information that you ignored,
|
When my device in background the Geolocation background Tracking not working so What should I do? plug-in version :-4.17.5 |
See wiki “Debugging”. Learn to listen to the plug-in debug soundFX (see api docs Config.debug). learn to observe the plug-in’s incredibly verbose logs. See api docs “.emailLog”. |
When I start background geolocation, the Tracking Location takes too much time to activate, and sometimes it does not activate at all. What should I do? |
How long is too long? The plug-in typically requires movement of at least 200 meters before tracking automatically engages. for device-specific issues, see https://dontkillmyapp.com |
My question is, when my app starts, the UI works perfectly, but when the Background Geolocation is triggered, the UI freezes. What is the solution to prevent my UI from freezing? |
Show me plug-in logs from |
When I start background geolocation tracking and then terminate my app, the background geolocation tracking plugin stops working, and I can no longer get the latitude and longitude. What should I do? |
const setTracking = async () => {
await BackgroundGeolocation.ready({
reset: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 0,
stopOnTerminate: false,
startOnBoot: true,
debug: false,
locationUpdateInterval: 1000,
fastestLocationUpdateInterval: 1000,
notificationsEnabled: true, // Show a notification while tracking in the background
notificationTitle: 'Tracking Location', // Title of the notification
notificationText: 'Your location is being tracked for safety',
notificationIconColor: '#000000',
geofenceProximityRadius: 5000,
geofenceInitialTriggerEntry: true,
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
locationAuthorizationRequest: 'Always',
backgroundPermissionRationale: {
title: 'Allow App to access your location in the background?',
message:
'test',
positiveAction: 'Change to {backgroundPermissionOptionLabel}',
negativeAction: 'Cancel',
},
autoSync: true,
})
.then(state => {
console.log('[BackgroundGeolocation ready]', state);
BackgroundGeolocation.onLocation(
location => {
console.warn('[Location Update]', location);
);
const onMotionChange = location => {
console.log('[motionchange]', location);
};
const onActivityChange = activityEvent => {
console.log('[activitychange]', activityEvent);
};
const onProviderChange = providerEvent => {
console.log('[providerchange]', providerEvent);
};
BackgroundGeolocation.onMotionChange(onMotionChange);
BackgroundGeolocation.onActivityChange(onActivityChange);
BackgroundGeolocation.onProviderChange(onProviderChange);
};
When I start background geolocation tracking, the initial state is is_moving = false. When my device starts moving, it takes some time to activate background geolocation tracking, and when I stop moving, it takes too much time to change is_moving = false. What should I do?
The text was updated successfully, but these errors were encountered: