On 17/05/2016 3:54 AM, Edouard Oger wrote:
Okay I'll try to list the solutions that we have here in order to send a tab to a device.
As I mentioned in my reply, a key constraint here is push support on mobile, in particular, from the "sync" code (which in Android doesn't have gecko to fall back on, and on iOS I've no idea)
* We can either keep the new tab record in the clients collection and improve the latency of it: (1)
IIUC, using Ryan's idea of using FxA to actually send the push, mobile devices could send the push notification by making a http request to a new endpoint (ie, sending the notification will not require push support on mobile) - however, it *will* require push to receive the notification.
In effect, this means only send tab from mobile to desktop will have reduced latency and nothing will change for send tab from desktop to mobile (given that doesn't exist yet, it's probably more accurate to say "when we implement send tab on desktop, mobile target devices will still need to wait for the next scheduled sync to see the tab")
* Or make a push-only version (needs push TTL > 0): (2)
IIUC, this requires more push support than currently exists on mobile to work in any way.
Note that even if we use S5 or S6 for tab sending, we will still need to implement one of the (1) solutions to improve the Sync latency for "general" sync.
Yeah, this would make sense if we intended to eventually replace all "client commands" with push (ie, replace rnewman's (3) with push) - but we don't have enough push support to make this viable at the moment.
I hope I didn't miss anything there.
ISTM we need to work out a rough timeline for when we can expect push support for Sync on mobile, and what (if any) limitations to this scheme we are willing to accept in the meantime. I'm not sure how to get a sense of the mobile side of this, but I am inclined to suggest that if it doesn't limit out future options, reduced latency in one direction is better than nothing.
Mark _______________________________________________ Sync-dev mailing list [email protected] https://mail.mozilla.org/listinfo/sync-dev

