owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.35k stars 475 forks source link

Messages sent to device are not displayed #509

Closed 5iver closed 7 years ago

5iver commented 7 years ago

This may just be an issue in the documentation. The Booklet states:

If messaging in OwnTracks is enabled, the apps subscribe to owntracks/user/device/msg to receive messages which you publish to that topic from an application.

But the JSON API does not list owntracks/user/device/msg as something the apps subscribe to. Also, when I publish to this topic, mosquitto shows that it received the publish, but does not show that it is sending the publish to any of our devices running Owntracks (which do have notifications enabled). I've also tried publishing to owntracks/user/device, but they do not get displayed in the app. My test messages look like this (current time is used for tst):

{"_type":"msg","prio":0,"title":"MQTT test","desc":"Testing messages.","tst":"1502900278"}

Is my formatting incorrect? Or are messages not supported in the Android app? I was testing this for displaying notifications from openHAB.

jpmens commented 7 years ago

We apologize: you have chanced upon a page which doesn't actually exist in the documentation any more ... Something old got cached; I will look at it immediately.

Messaging was a feature, but we removed it quite some time ago.

5iver commented 7 years ago

LOL! This was one of the first things I added to my backlog when first setting up openHAB a couple years ago and I finally found some time to test it before implementing. This is where I found that page in the Booklet. Guess I need to setup openHAB Cloud.

jpmens commented 7 years ago

Once again: I'm sorry. That shouldn't have happened, but it's one of those things... (There was another page there which shouldn't have been there, so thank for the heads up!)

Maybe only a small consolation, but: if you have an iOS device look at featured and here's an article using it with openHAB. I know you did say Android above ... :-)

5iver commented 7 years ago

Exactly... this is the article that I had noted and planned to implement! I do not use iOS, but had hoped that it would eventually be possible with Android. No need to apologize... I'm glad the docs could get cleaned up for others!