android icon indicating copy to clipboard operation
android copied to clipboard

No Friends on Android HTTP Mode with FDroid build

Open TheOneValen opened this issue 3 years ago • 3 comments

  • App build number: 20409000
  • Android version: 12.0.0.134
  • Device: P30 Pro
  • Installation source: FDroid (works with Play Store Build)

I use the HTTP Mode on my own server.

I added the following settings to --load=friends as mentioned in the documentation.

user-device1 ["user/device2"]

But the friends are not shown. Adding user/device1 also, does not change anything (i.e. does not show self)

TheOneValen avatar Sep 05 '22 07:09 TheOneValen

As per the documentation of the Recorder, you will likely want two users as friends; the "real" friend, and yourself so that your own position is shown on the map.

jane-phone ["john/android", "jane/phone"]

Please note there is exactly one space between key (jane-phone) and value, and that the value must parse to a JSON array.

Has your user/device2 actually already published data? Do you see that in their rec file on the server?

jpmens avatar Sep 05 '22 10:09 jpmens

The friends feature works as advertised if I install owntracks from Google Play Store. It does not work (same configuration) with the FDroid store version.

TheOneValen avatar Sep 05 '22 17:09 TheOneValen

Hmm, having difficulty reproducing this one. Are you seeing something different to these screenshots?:

image

image

image

growse avatar Sep 07 '22 09:09 growse

I also see no friends on my new phone SAMSUM S23 ULTRA. Data is sent to HA and that is shown correctly. My wife's phone has friends, as did my S21 ULTRA.

In the logs I get a: "Received incoming message: MessageUnknown on NOKEY". GOOGLE was no help with the NOKEY. :-(

RobertoCravallo avatar Mar 13 '23 09:03 RobertoCravallo

Can you post your redacted config?

growse avatar Mar 13 '23 11:03 growse

Gladly, if I knew what that is?

Regards from Germany....

This it? { "_type" : "configuration", "waypoints" : [ ], "_build" : 20410051, "autostartOnBoot" : true, "cmd" : false, "connectionTimeoutSeconds" : 30, "debugLog" : false, "deviceId" : "S23", "dontReuseHttpClient" : false, "enableMapRotation" : false, "experimentalFeatures" : [ ], "fusedRegionDetection" : true, "ignoreInaccurateLocations" : 20, "ignoreStaleLocations" : 0.0, "locatorDisplacement" : 10, "locatorInterval" : 180, "locatorPriority" : 2, "mapLayerStyle" : "GoogleMapHybrid", "mode" : 3, "monitoring" : 2, "moveModeLocatorInterval" : 30, "notificationEvents" : true, "notificationGeocoderErrors" : true, "notificationHigherPriority" : false, "notificationLocation" : true, "opencageApiKey" : "", "osmTileScaleFactor" : 1.0, "pegLocatorFastestIntervalToInterval" : true, "ping" : 30, "pubExtendedData" : true, "remoteConfiguration" : false, "reverseGeocodeProvider" : "Device", "showRegionsOnMap" : true, "tid" : "02", "url" : "https://hooks.nabu.casa/********************", "username" : "*************" }

RobertoCravallo avatar Mar 13 '23 12:03 RobertoCravallo

MessageUnknown means that it can't parse the message that it's receiving from the endpoint.

I'll need to have a look and see if I can reproduce this with HA specifically, as I've not tested with that.

I wonder if HA needs to be configured to send friends to a new deviceId when that changes. Your current deviceId is "S23", so I assume it was "S21" on your old device. I believe the OT recorder would need to be explicitly told to send friends to a new device when the id changes, but not sure if the same is true for HA.

growse avatar Mar 13 '23 12:03 growse

Einstellungen – Home Assistant 2023-03-13 13-20-21

The device S23 is not "found" bei HA. That is my wife's device showing. Can not figure out, how to get HA to even find the device.

RobertoCravallo avatar Mar 13 '23 12:03 RobertoCravallo

If HA isn't showing it as a device, then that's a smell that the location messages from your device aren't even making it to HA. Have you double-checked the configured URL in OT? What do the HA logs say?

growse avatar Mar 13 '23 15:03 growse

I just removed OWNTRACKS from HA and reinstalled it. Then I reinstalled the apps on both devices and now everything is working again.

"Problem" solved!

RobertoCravallo avatar Mar 13 '23 16:03 RobertoCravallo