-
Notifications
You must be signed in to change notification settings - Fork 276
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
Not getting same latitude and longitude , when phone is statitionary #405
Comments
Logs please |
Actually ,I build application with phone gap build , so can't able to give logs. |
Yes you can. The plugin records logs to its own database. See Logging Methods and |
don't send logs as an image. The logs can sometimes be > 1MB! Just connect your app to Safari developer console and manually execute Or use put a button on your UI to execute |
I'm trying to send mail but it throw error-> No mail Accounts.Please set up mail account in order to send mail |
So set up an email account. |
Email logs |
There are no logs attached. This is only the config. Please carefully read the requirements for
<manifest>
<application>
...
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</manifest> |
Please find attachment
|
configure |
There, that's better. |
I see no issue here. Of course locations will differ slightly every time you request a Unrelated, but your device is of poor quality for the type of tracking this plugin does, since it's has no gyroscope or magnetometer (compass). The plugin will have difficultly with motion-detection, which is a crucial for the plugin to detect when the device is moving / stationary. The activity-type reported by the plugin (ie: This has nothing to do with accuracy of locations, which are unaffected by motion-sensors.
|
Please do not post long logs to the thread, forcing one to scroll 10 meters to get to bottom of page. attach them as files. |
Please check this file for IOS |
What seems to be the problem in last logs? Is this a Wifi-only iPad? |
Yes |
Obviously performance on a Wifi-only device will be poor since there's no GPS on those devices. |
What seems to be the problem in last logs? Is this a Wifi-only iPad? |
I don't see a problem in the logs. What are the symptoms? |
But difference of latitude and longitude is more than 100-200 meters. Still device in stationary? |
Yes, look at the location being recorded. It has an accuracy of
There is no issue here. |
Correction. At
3 samples were requested:
Only the best sample is returned to the See the note about "samples" in the getCurrentPosition docs: ℹ️ While the successFn will receive only one location, the plugin does request multiple location samples in order to record the most accurate location possible. These samples are not persisted to the database but they will be provided to your location event-listener, for your convenience, since it can take some seconds for the best possible location to arrive. For example, you might use these samples to progressively update the user's position on a map. You can detect these samples in your location callbackFn via location.sample === true. If you're manually POSTing location to your server, you should ignore these locations. |
Hello christocracy , Is there any option to detect location is off or on and suggest user to on location(GPS) .when our app is completely close.? |
The plugin automatically records and posts a location with Please stay on topic. Your issue is titled "Not getting same latitude and longitude , when phone is statitionary " |
Ok sorry for other topic "Not getting same latitude and longitude , when phone is stationary " . still not getting same latitude and longitude . is any option missing from below config.
|
You won't get the same lat/lng. It's to be expected that the location will
change at any given moment, particularly while indoors, the location vary
by tens-of-meters.
Also, what do you expect when you've configured desiredAccuracy: 100?
There is no issue here.
On Wed, Jul 19, 2017 at 6:45 AM Swapniltdatalogy ***@***.***> wrote:
Ok sorry for other topic "Not getting same latitude and longitude , when
phone is stationary " . still not getting same latitude and longitude . is
any option missing from below config.
bgGeo.configure({
// Geolocation config
desiredAccuracy: 100,
distanceFilter: 10,
stationaryRadius: 25,
// Activity Recognition config
activityRecognitionInterval: 10000,
stopTimeout: 5,
// Application config
// debug: true, // <-- Debug sounds & notifications.
stopOnTerminate: false,
// logLevel :5,
startOnBoot: true,
preventSuspend: true,
// HTTP / SQLite config
url: "
http://www.umbra.org/umbra-app/umbra-api/11umbra-testing-api.php?callback=JSON_CALLBACK¶m=trackUserLocation&user_id=0&lat="+lat+"&longni="+lng
<http://www.umbra.org/umbra-app/umbra-api/11umbra-testing-api.php?callback=JSON_CALLBACK¶m=trackUserLocation&user_id=0&lat=%22+lat+%22&longni=%22+lng>
,
method: "POST",
autoSync: true,
desiredOdometerAccuracy: 10,
maxDaysToPersist: 3,
heartbeatInterval: 180,
params: {
"auth_token": "maybe_your_server_authenticates_via_token_YES",
"userid":window.localStorage.getItem('user_id'),
"devicedate":window.localStorage.getItem('devicedate')
}
}, function(state) {
// alert('start one two three');
if (!state.enabled) {
if(window.localStorage.getItem('user_id') == '' || window.localStorage.getItem('user_id') == null || window.localStorage.getItem('user_id') == undefined )
{
bgGeo.start();
}
}
});
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#405 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA6l6ILKiNr_pqZplEgWu0D9A39KuXyks5sPd46gaJpZM4ObL2k>
.
--
Snet form Gmail Mobile
|
I checked with desiredAccuracy : 0 also but not getting same result. |
What exactly are you expecting? |
I'm not at all surprised the location varies by 40-200 meters when you're sitting indoors. |
Okay |
Thanks for your help. |
Hello Chris,
bgGeo.configure({
// Geolocation config
desiredAccuracy: 0,
distanceFilter: 5,
stationaryRadius: 25,
// Activity Recognition config
activityRecognitionInterval: 10000,
stopTimeout: 5,
// Application config
//debug: true, // <-- Debug sounds & notifications.
stopOnTerminate: false,
startOnBoot: true,
preventSuspend: true,
// HTTP / SQLite config
url: "http://www.umbra.org/umbra-app/umbra-api/11umbra-testing-api.php?callback=JSON_CALLBACK¶m=trackUserLocation&user_id=0&lat="+lat+"&longni="+lng,
method: "POST",
autoSync: true,
maxDaysToPersist: 3,
heartbeatInterval: 60,
params: {
"auth_token": "maybe_your_server_authenticates_via_token_YES",
"userid":window.localStorage.getItem('user_id'),
"devicedate":window.localStorage.getItem('devicedate')
}
This is my configuration . I implement heartbeat event after 1 min it work like charm .but im in my office with my ipad in stationary position .but every minute it takes different latitude and longitude . database schema for latitude and longitude .
Please check screen shot -> https://www.screencast.com/t/lltCnL3W
Your Environment
cordova -v
):cordova platform ls
):Expected Behavior
Actual Behavior
Steps to Reproduce
Context
Debug logs
The text was updated successfully, but these errors were encountered: