phonetrack
phonetrack copied to clipboard
Friends sharing in owntracks
Hello,
how does the friend sharing of locations with OwnTrack works? As fare as I understand OwnTrack will receive a list of friend positions each time it sends a position.
I created two accounts A and B. A shares its location with B. So if I enter a new location in A it shows in the WebUi of user B. In OwnTrack andoid app I added the share link of B. I can also see in the UI of B the position. But the list of friends which OwnTracks receives is always empty. I then changed a condition on server:
--- /var/www/html/custom_apps/phonetrack/lib/Controller/backup/LogController.php
+++ /var/www/html/custom_apps/phonetrack/lib/Controller/LogController.php
@@ -1405,7 +1405,7 @@
$res['done'] = 1;
- if ($isPublicSession && $useragent === self::LOG_OWNTRACKS) {
+ if ($useragent === self::LOG_OWNTRACKS) {
$friendSQL = '
SELECT p.`deviceid`, `nametoken`, `name`, `lat`, `lon`,
`speed`, `altitude`, `batterylevel`, `accuracy`,
Then I get a list of friends in OwnTrack. But I get B as friend of B in OwnTrack. So I do not get the shared location A.
Is there a way to get OwnTrack show all "friends" which location shared? Is there some config settings I missed to change?
Version of PhoneTrack: 0.8.1