-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
duplicate messages in HTTP mode #785
Comments
Duplicates may happen with MQTT QoS1 or HTTP when no positive acknowledge is received from the backend. In your example there is no duplicate, but another location update was triggered. The 2nd and 3rd location update in your example was triggered by "visiting" a significant location (Controlled by 2Settings/Privacy/Location Services/System Services/Significant Locations") |
Yes, location 2 and 3 are no duplicates. They even have different coordinates. I just added it here from my logs to show that the app sent some location updates between the 2 duplicates 😉 But why is location 4 not a duplicate of 1? They have same |
Sorry, I didn't answer one of your questions: I cannot explain why location 4 still shows the timestamp of location 1, but location 2 and 3 have a newer timestamp. I guess it is because locations 2 and 3 were triggered by the "Frequent Location Monitoring" ( |
Hi there,
first of all thank you for all the great work at owntracks!
I use the iOS app in HTTP mode and try to understand the messages I receive.
Sometimes I get kind-of duplicates. I know that duplicates are possible with MQTT and qos=1. But in case of HTTP I guess messages are sent just once, right?
But please have a look at what my server receives:
The 4th message is basically the same message as the first message, even with the same (old)
tst
, but sent 10 seconds after the first one.The only difference is the
p
property and the addedcreated_at
property. I think thatcreated_at
is added just because the time of the GPS-fix is different than the time the message was sent.But why do I get that 4th message anyways?
And a second question:
When is that
created_at
property added?In my logs I see it in two cases:
1. on ping-triggered messages (I guess that makes sense if ping sends the last known location)
2. when receiving the duplicates mentioned above.
But what logic is causing this exactly?
All the best!
da-mkay
The text was updated successfully, but these errors were encountered: