julien-nc / phonetrack

Nextcloud app to create tracking sessions to display phones position in real time and export activity to gpx.
GNU Affero General Public License v3.0
47 stars 6 forks source link

Private tracking no data, public tracking has the data #20

Open lroyb opened 9 months ago

lroyb commented 9 months ago

I'm having problems with the tracking system.

Using phonetrack from f-droid. Phonetrack connects fine to my nextcloud (26.0.7). It sends the tracking data correctly, but on the private tracking view, no data is available. But when using the public tracking page, all the tracking data is there and correctly displayed.

When I first installed phonetrack in nextcloud it worked properly. But now, all data isn't available in the private section. I can only access the tracking data in public view. Which isn't exactly secure

IMG_20230923_081604 IMG_20230923_081623 IMG_20230923_082022 IMG_20230923_082505

simeonreusch commented 2 months ago

Hi, I'm having exactly the same issue (but with using the iOS owntracks app). I triple checked everything: The URLs are correct, I also deleted and recreated the session, but the issue persists: All datapoints exclusively appear on the public page, none appear on the private page. Nextcloud and app are on the latest version.

georgedorn commented 1 month ago

image

A dig through the SQL used to generate the public vs private tracking page lead me to discover the source of the problem. The default value here of 0 (possibly the result of an upgrade) means load no points, not load all points. To fix this, delete this setting or set it to a very large number.

simeonreusch commented 1 month ago

Hi, I have set this value to 99999 when setting everything up; this seems unrelated to the problem. Note that the statistics screen shows zero datapoints in the private session:

Screenshot 2024-05-17 at 08 55 08

When enabling the public link, all the datapoints are there:

Screenshot 2024-05-17 at 08 56 16