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

IOS App with version 5.0 not updating location #45

Open
timmcmic opened this issue May 24, 2022 · 22 comments
Open

IOS App with version 5.0 not updating location #45

timmcmic opened this issue May 24, 2022 · 22 comments

Comments

@timmcmic
Copy link

Launch IOS App and validate that modern interface is displayed.

Select a device from the devices menu.

Compare device on IOS to web interface.

Vehicle lags several seconds to + minutes behind active tracking on the web interface.

Vehicle location does not update when reselecting the unit.

App does eventually refresh but tracking does not appear to be as aggressive as old version.

@tananaev
Copy link
Member

Do you happen to have a large number of devices? Because location updates are always done via WebSocket, so there should be no delay. By the way, check if WebSocket connection is working for you.

@timmcmic
Copy link
Author

We have 5 devices. Websockets appear to be working from what i can tell - certainly not an area of expertise. I am seeing the lag across three different mobile IOS devices as well as the vehicle not updating after the device is awoken and a unit is selected. You can select the unit over and over and it does not update without resetting the application.

@tananaev
Copy link
Member

Are you using modern or legacy app?

@timmcmic
Copy link
Author

Using traccar manager on the iphone appears to be rendering the modern app by default. I had not switched back to the legacy app on the mobile devices.

The web interface tracks fine which is what i'm using for comparison.

@tananaev
Copy link
Member

Web interface on the same phone works fine?

@timmcmic
Copy link
Author

I did not try tracking it through the browser on the phone - I can try but then I cannot side by side on the same device.

@tananaev
Copy link
Member

You can still compare to the working one, right? To see if it works.

@timmcmic
Copy link
Author

Got it - standby - I'll see if I can get some ambulances moving and test.

@timmcmic
Copy link
Author

Ok - so I went through and rebooted and attempted a repro. The app did pretty well. What I was able to reproduce was changing focus to a different app - then reopening the app and showing that the unit does not update automatically and did not refresh when clicking on the unit.

I have a video if you have somewhere to send a link.

@tananaev
Copy link
Member

You should be able to upload the video here directly. Did it work correctly in the legacy app?

@timmcmic
Copy link
Author

In the mobile IOS app - how do I go ahead and change to the legacy interface?

@tananaev
Copy link
Member

On the login screen there's a button to switch.

@timmcmic
Copy link
Author

Ok - give me a few minutes. I'm already logged in on the mobile app i'll log out and give it a go.

@timmcmic
Copy link
Author

Ok found it - it looks like a refresh button in the top right hand corner so it was not obvious sorry.

@timmcmic
Copy link
Author

Followed the same steps on the repro - two devices. One iphone using the modern interface one ipad using the legacy. Both of them did the same thing. Take the apps out of focus and switch to - for example mail. Wait - bring the apps back in focus. The unit that was originally selected does not move. Reselect the unit from either the unit selection in modern or the table in legacy. The unit does not change location. App must be exited and come back in.

On a PC with the modern web interface running (not the host running traccar) the issue does not reproduce.

@timmcmic
Copy link
Author

@tananaev
Copy link
Member

OK, it sounds like the issue is not really related to version 5.0 of Traccar then. If it works the same way in the legacy app.

@timmcmic
Copy link
Author

We were running 4.6 two days ago with no issues. Did a backup of the database, backup the conf file, uninstalled and installed version 5.0. We did not have the same issue prior to upgrading. Thoughts?

@tananaev
Copy link
Member

I'm pretty sure nothing changed since 4.6 in terms of live location updates. Can you record a video with the old version showing that it's working in the same conditions?

@timmcmic
Copy link
Author

I'd have to spin up another server - we only have one. Let me see what I can do. Either way - is what we're seeing expected behavior regardless of version?

@tananaev
Copy link
Member

I suspect the issue has something to do with the way iOS system handles background. It probably kills some JavaScript execution or network connections when you background the app. But then it won't work on old versions either. That's why I'm curious how it worked there.

@timmcmic
Copy link
Author

Ok cool - and maybe i'm just totally imagining it. We have it running constantly in our supervisors truck and switch between it an our dispatch application but have never noticed the issue until this recent uprgade work. I'm going to see if i can snapshot the machine and then revert.

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

No branches or pull requests

2 participants