-
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
Last update not working #102
Comments
Each platform is a completely different animal. You are not telling me On Wednesday, April 13, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
Show me your js On Wednesday, April 13, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
|
How are you installing the plugin with PGB? On Wednesday, April 13, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
``<gap:plugin |
It's not
|
I just did a build of the SampleApp on PGB. It works fine. |
Now it is better but tracking stops after stationary mode for a while. If i stops for 1 hour and then go further, plugin not start. App is in background mode. If then tap on app, the sound and notification for new location rings (debug mode). I think that app is suspended for some reason. Do you have any idea what is going on? I build app with PGB with settings you write. Thanks in advance, |
If stopTimeout expires, plugin enters stationary mode and your app suspends On Friday, April 15, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
How long is to "significant change" accours? My problem is that i need to track my customer as accurate as possible. What settings do you suggest? PreventSuspend or very long stopTimeout? |
Try either On Friday, April 15, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
Ok i will. But i drove for 20 km and plugin not started tracing.I will report results |
Try preventSuspend. On Friday, April 15, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
I try preventSuspend mode. Result 14:57 Location MOVING I try other functions in app and when i tap on some button app crash. So maybe is memory leak or something like that. Is it possible that memory leak is in plugin or only in app? |
Are you still having issues? There is no memory leak in plugin. I've tested in a pure native environment for hours and the memory response is completely flat. |
Yes, I still with this problem, I'll try to do an |
Yes, the problem persist. Maybe is the problem in other plugins i use. The problem is always after stop detection. Before that it works ok. It doesn't matter if i drive for 10 minutes or 2 hours. After stop detection, plugin stop working. I will make simple app with just plugin included. Hope it will work |
Test with my SampleApp so we're guaranteed to be running the same code. |
Hi, i try your application with attached config.xml. I use phonegab build. Result are pretty much the same. App stop tracking after stop detection for a while. Sometimes it start tracking again, but usually not. Yesterday was interesting. I start in the morning and then app after 500 meters notify Stationary region exit, but app not start tracking. Sometimes i have to press button to "wake up phone", and than app start tracking. I use this phone just for testing tracking, so normally phone is sleeping. I dont know if this is important. A lot of times when i open app, button ("play/pause" ) is green ("play"), that means that tracking is off. But i never press pause button. Something is force app to stop tracking.
|
Are you aware the plugin automatically toggles tracking off based upon On Wednesday, May 11, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
@christocracy - is What I'm seeing (in debug mode):
I think my setup is pretty vanilla (mostly copied from the demo-app), but happy to share more details as necessary. My gut is that my problems are due to a misunderstanding of the setup/configuration, and not necessarily in the plugin itself - but hope to add more info to help diagnose/track down the issue we (users) are having ... |
I do not have this problem in the sample app. Are you monitoring web On Wednesday, May 18, 2016, Patrick Fowler notifications@github.com wrote:
Snet form Gmail Mobile |
@christocracy: Did you try build sample app with phonegap build?. Maybe this is the problem. Could you please try and report. Thanks, Matjaž |
@christocracy: I can't say for sure about the web-console since my best-case repro has been walking around or driving. Likewise for Xcode logs sadly. I've simplified my code to use the simple I'll update as more info comes into focus |
@mrsek what version of the plugin are you using? The method signature to Update to the latest version of the plugin. |
Status please. |
Sorry for late answer. I already have right code. I tested all week with your app and last plugin with phonegap build. Results are: app work quite ok. Sometimes it happens, when app is slipping for long period of time, that you need to drive longer than 500 meters to start tracking. It needs up to 5-10 kilometers. Interesting is that if i press main button, than app starts traking immediately. I also test if i shake phone more (not just leave on cars dashboard), tracking start faster. Otherwise i think that your last update significantly works better, but i thinks there is still somethink to improve. Especially sometimes late start tracking, which in my case is crucial. I will test more and report result. |
I don't know about the nature of your app, but preventSuspend will certainly assist with exit-detection, since this mode prevents your app from sleeping, constantly monitoring the accelerometer for movement. When the slightest bit of movement is detected, the plugin becomes "curious", turning on location-services at full power and requests a series of location-samples, manually evaluating the current-location against the stationary-geofence. Exit-detection can take 10-50 meters in most cases. However, this mode will have an impact on battery-life so should only be used in specialized applications, like fleet-tracking, where the user can be assumed to have the device plugged into power in a vehicle. |
That makes sense. If i start from home, works every time (wifi at home, ..). At work, which is a little more between hills, it needs more time to start tracking. Wifi is always turned on. My case is, that users must be tracked as accurate as possible in real time. I will try preventSuspend. Previously when i use this option it stop working after 1 hour every time. I will try with sample app. I will report result. Thanks for all 👍 |
It's important to realize that when the plugin is in stationary-mode (without |
In my dense urban of environment, I have |
Thanks you for the explanation. I think is good for all, that know how plugin works in details. You can close issue now. If I found something strange, I will report. |
Hi, |
Personally, I've never had it fail, even after several weeks. However, the mechanism relies upon being able to fetch a location every 200 preventSuspend is fragile. On Monday, June 20, 2016, mrsek notifications@github.com wrote:
Snet form Gmail Mobile |
Hi, |
Hi,
i use phonegap build version and i noticed that bgGeo.configure sucess callback, is call several times. If i delete app, this callback is call only once (first time), but if i close app and run again, than it is called several times.
Another problem is that success location callback is called only at start app. After that no location callback is made. I drove for 1 hour.
The text was updated successfully, but these errors were encountered: