aTox icon indicating copy to clipboard operation
aTox copied to clipboard

Feature request: add push notification service, possibly sef-hosted

Open Klagio opened this issue 4 years ago • 10 comments

Something on the line of Mattermost (or anything else that works), that would help in not needing to both party to be online at the same time in order to start a message chat or voice chat

https://developers.mattermost.com/contribute/mobile/push-notifications/service/

Klagio avatar Feb 10 '20 15:02 Klagio

As a possible workaround, maybe using an MQTT server?

I do have a self-hosted MQTT server (is pretty easy to have), so all friends could connect to the MQTT server and get the notification (message, phone call, attachment etc..)

The Atox client (of the sender) has just to publish to the MQTT server what is doing (messaging a specific TOX ID, calling a specific TOX ID) ...

The above should be relatively easy to implement.

Who does not want to have a self hosted MQTT server it can be used popular cloudmqtt .. of course not totally private, but it is used only to say that two TOX ID are communicating, not the actual message (or voice )

Klagio avatar Feb 13 '20 13:02 Klagio

@robinlinden Hi dear developer. I'm not programmer but I know that "push notification" is a centralized server which opposite to nature of Tox protocol ! It will undermine the Tox client ! So, it is better not to implement it at all .....

Can you kindly explain what is "self hosted MQTT server" ? Do you mean that user should build a server by himself ?

Nokia808 avatar May 14 '20 20:05 Nokia808

I think the request is something like

  1. User hosts a mqtt server
  2. aTox (you) subscribes to mqtt messages and goes to sleep
  3. aTox (friend) pings your mqtt server which wakes your phone up

I think using doing something like https://github.com/envsh/tox-homeserver is far more realistic and secure. That project runs the actual Tox core for your client on a server/desktop you own, and your phone speaks with that. That way you control your own Tox node and your phone can do something like a long-lived TCP-connection (or use one of many existing projects) for a kind of push messages. Then your phone can go to sleep and doesn't have to deal with onion routing or keepalive pings. A lot less data and battery used on your phone, but the phone itself doesn't run Tox.

robinlinden avatar May 14 '20 20:05 robinlinden

I think the request is something like

  1. User hosts a mqtt server
  2. aTox (you) subscribes to mqtt messages and goes to sleep
  3. aTox (friend) pings your mqtt server which wakes your phone up

I think using doing something like https://github.com/envsh/tox-homeserver is far more realistic and secure. That project runs the actual Tox core for your client on a server/desktop you own, and your phone speaks with that. That way you control your own Tox node and your phone can do something like a long-lived TCP-connection (or use one of many existing projects) for a kind of push messages. Then your phone can go to sleep and doesn't have to deal with onion routing or keepalive pings. A lot less data and battery used on your phone, but the phone itself doesn't run Tox.

thats cool, I will try it

Klagio avatar May 14 '20 21:05 Klagio

@robinlinden Dear - though I should asking developer of "tox-homeserver" - I understood only 1/2 ! What I did not understood are:

  1. after run the tox-homeserver on my laptop, by which mobile applications can I communicate with it? By aTox or TRIFA ? or by what ?
  2. I see on tox-honeserver release section an apk package ! What is this ? To run tox-homeserver from mobile or it is a mobile Tox client like aTox or TRIFA ?
  3. on tox-homeserver repository home page there is "Web client (demo)". Is this how to communicate with tox-homeserver from within mobile (use mobile browser) ?

Nokia808 avatar May 15 '20 19:05 Nokia808

It was just thoughts on a possible future feature for aTox, I don't think any mobile clients aside from the ones in the tox-homeserver repo actually work with the homeserver idea yet.

I haven't tested it too much, so if you have questions about the tox-homeserver project you'll have to ask in that repo. :P

robinlinden avatar May 15 '20 19:05 robinlinden

It was just thoughts on a possible future feature for aTox, I don't think any mobile clients aside from the ones in the tox-homeserver repo actually work with the homeserver idea yet.

I haven't tested it too much, so if you have questions about the tox-homeserver project you'll have to ask in that repo. :P

Ohh ok,

That would be TOP TOP application:

  • self hosted TOX server (or perhaps on a VPS
  • TOX client that works P2P but also with TOX server above

Klagio avatar May 16 '20 07:05 Klagio

Just as a thought here are https://code.briarproject.org/briar/briar-mailbox some realisation of "same" ideas. And for user side it is interesting because it developed with thoughts in the background that "it must be simple" - for example one of idea is "for self hosting" can be used any android phone wich droped anywhere with wifi internet and for host it self can be started with "one button". From user no need learn shell commands in busybox or something else - just like other phone apps - simple run and you have your own hidden server (just connect it to power)

lpslp avatar Mar 13 '23 06:03 lpslp

ToxProxy does exactly what https://code.briarproject.org/briar/briar-mailbox does, but for tox. It's still in beta though.

it was featured at ToxCon2019: https://github.com/zoff99/ToxCon2019/blob/master/slides/toxcon_2019_ToxProxy.pdf

zoff99 avatar Mar 13 '23 07:03 zoff99

ToxProxy does exactly what https://code.briarproject.org/briar/briar-mailbox does, but for tox. It's still in beta though.

it was featured at ToxCon2019: https://github.com/zoff99/ToxCon2019/blob/master/slides/toxcon_2019_ToxProxy.pdf

@zoff99 I've warned you before about recommending your weird forks of things in this repo without properly informing users about the IP-leaks and unreviewed forks of c-toxcore.

robinlinden avatar Mar 13 '23 08:03 robinlinden