#sailfishos-push log for Wednesday, 2017-05-31

*** merbot <merbot!~supybot@phost1.merproject.org> has joined #sailfishos-push09:13
*** abranson_ <abranson_!~abranson@greenback.default.abranson.uk0.bigv.io> has joined #sailfishos-push14:02
abranson_hello, is this still on?14:04
abranson_tbr: Florian Leeber is asking if anyone would be interested in a joint SFOS/UBPorts open push notification service.14:06
tbrabranson_: heh, canonical already killing their infra? now that's fast14:09
tbrabranson_: I'm happy to share my thoughts and test results with them14:12
abranson_tbr: yes it does seem a little quick. that's the problem with such tethered services though eh?14:15
abranson_thanks, I'll let him know. probably best if he comes in here14:15
tbrayup14:16
tbrI think the canonical stuff is mostly open sauce14:16
tbrso we could look into reusing that or most of it14:16
abranson_he said it was part of the ubuntu one thing, so that might make it a bit less likely14:19
tbrwell, I looked into it back then when they evaluated mosquitto and then went full out NIH, and it looked like most the source was there. I guess account infrastructure and such might be an issue though.14:22
abranson_They went NIH again? what a shocker ;)14:26
tbryeah, *nobody* could have seen that coming14:27
*** Flohack <Flohack!~Flohack@91.118.126.194> has joined #sailfishos-push14:33
FlohackHi there14:34
FlohackFlorian from UBports14:34
FlohackThe idea came up to work on a global unified open-source push platform ;)14:34
tbrlo14:36
tbrso, canonical already pulling the plug on their NIH push thing?14:36
tbrI did some work previously for sailfish, as that was then lacking such a service (and still is AFAIU).14:38
tbrDid a proof of concept based on MQTT (mosquitto), which worked very reliably14:38
FlohackYeah Canonical will kill things slowly but steady. Since a few weeks users reporting more and more issues with notifications failing14:39
FlohackI read the page already yes14:39
tbryou probably know better than me. How much of the ubuntu touch notification infrastructure is open source?14:40
tbrI stopped looking at it pretty early on, when they kept playing hide and seek with me.14:40
FlohackNothing is open source, they just want to give us an example/demoe code that works "similar"14:42
Flohack^^14:42
FlohackSo we decided not to pursue this idea any longer14:42
Flohackto cooperate with Canonical, its not possible14:42
tbrugh14:44
tbrworse than I expected :-/14:44
FlohackIt gets worse for us at least: Telegram sends now all notifications to Canonical server. Rumors have it that Canonical actually has to pay for that :) => So how can we convince Telegram to send us all their stuff for free xD14:46
tbrok, so there to be honest, you should prepare yourselves for loss of service.14:57
FlohackYes we know15:01
FlohackThere are 100 ideas how to work around, but in fact we cant go the way to say, ok then phone checks every 5 minutes on Telegram, since that means a complete login to the cloud, iterating through lots of lists to finally know if smth new is there or not15:02
FlohackFor POP3, IMAP it would be less complicated15:02
tbrmost IMAP servers speak IDLE by now, that's essentially push. I'm not sure how many client libraries have that implemented.15:14
FlohackBut then again the socket must stay open, the app must stay active15:17
tbryes, just like in other push protocols15:18
FlohackThis can be discussed in detail but currently the idea is that the Email app does not run all the checks by itself, but has a little companion plugin that is being called by the push helper to do its job. So it would login/logout to check15:21
tbranyway, so what would be the aim? build a push protocol stack from scratch? mimic the ubuntu push server?15:25
FlohackThe first step is that we find a list of requirements that it should fulfill15:35
Flohackmaybe we can use your message queueing on the lower level, could be better than a rewrite15:35
FlohackI can open a wiki page to start brainstorming if you like15:38
tbrsure15:42
tbrif people don't mind we can use this channel for now15:42
tbrI'm open to discuss basic architecture and concepts15:42
abranson_I've added a comment to a relevant bug in the internal Jolla bz so people know about this. I don't think it would be a priority by any stretch, but there has been interest in it in the past. Especially while there are no daemons allowed in the harbour.15:42
tbrI have a test server up that we can use to evaluate/iterate, etc15:43
FlohackOki15:43
tbrthe concept was always meant to be platform independent, it just happened to be that at that time it scratched my itch of push notifications on sailfishos15:44
FlohackYeah we can use this channel but I like to persist things in one place. So basically I can write summaries from here to https://wiki.ubports.com/wiki/Universal-Push-Notifications%3A-WIP%2C-Brainstorming%2C-etc.15:47
Flohacktbr: How you plan to authenticate users/devices?15:49
FlohackOn my way home now. I will return here, but I do not have an IRC logger online ;)15:59
tbrsure16:09
tbrhttp://www.merproject.org/logs/%23sailfishos-push/ - I should turn on the logg prettyfy thing for this16:12
*** Flohack <Flohack!~Flohack@91.118.126.194> has quit IRC (Remote host closed the connection)16:14
*** Flohack <Flohack!~flohack@2a02:8388:8981:d00:243f:7cd1:1e7a:cf8f> has joined #sailfishos-push17:25
FlohackRe17:25
FlohackIsnt MQTT the thing that is used by Facebook?17:26
tbrIIRC they use that for *something* but not sure if it's in their push protocol itself17:28
tbr16:12:11< tbr> http://www.merproject.org/logs/%23sailfishos-push/ - I should turn on the logg prettyfy thing for this17:28
tbrin case you need logs17:29
FlohackSo basically I read about it, there are possibilities to form a cluster of MQTT brokers. That would be a good thing17:29
FlohackThx17:29
tbrmosquitto scales massively by itself already, but yes you can cluster it17:29
FlohackYeah its jusst for availability, I would put there lets say 3 nodes for the beginning. As I see it could support 1000s of devices17:30
FlohackSo we would be good and anyway we would monitor system load17:30
tbrI'd need to go back to my mosquitto ml archives, but I think someone loaded it with tens of thousands of connections and massive throughput17:32
tbrbtw: MQTT doesn't play well with proxies17:32
FlohackYou mean people behind NAT?17:33
tbrno17:33
tbrNAT is a separate problem, there you just need to send keepalives to keep the NAT table entries fresh17:33
tbrI never had any NAT problems with my test service17:34
tbrespecially enterprise networks might block any outbound traffic unless it goes through a HTTP proxy17:34
FlohackHmm ok but then in the end the user will find out about this. Must be the same for Android/iOS17:35
tbrMQTT will not always work in such settings. It *might*.17:35
tbryes, although I think Android and iOS do funky HTTP tunneling fallbacks17:36
tbrsomething that could of course be also implemented in the long run17:36
Flohacksure17:37
FlohackHmm funny the whole push client on Ubuntu Touch is written in Go17:38
FlohackI cant understand this xD17:38
*** Flohack <Flohack!~flohack@2a02:8388:8981:d00:243f:7cd1:1e7a:cf8f> has quit IRC (Quit: ChatZilla 0.9.93 [Firefox 53.0.3/20170518000419])21:30

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!