Changes

Jump to: navigation, search

CloudServices/Presence

305 bytes added, 23:08, 16 December 2013
no edit summary
[https://phonebook.mozilla.org/#search/fabrice Fabrice Desré]
==Presence on other platformsMobile Platforms==
===Presence on iOS===
In iOS >= 7.x, applications that want to provide a presence featurecancan keep a socket opened in the background even if the applicationis not running anymore in the foreground.
The feature is called setKeepAliveTimeout (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/setKeepAliveTimeout:handler:)
and will give the app the ability to register a handler that
will be called periodically to check on the socket connection. Only approved VOIP apps areallowed by Apple to always keep a socket alive and not be terminated. Appleis very discerning about which apps get to use this functionality.
The handler has a limited time to do it (max 10 seconds) but
this is enough to handle presence for the user by interacting with a
server .
The Apple Push Notification Service https://en.wikipedia.org/wiki/Apple_Push_Notification_Service
Therefore, building an application with device-level presence on an iOS device
is doable but requires the publisher to maintain one or several connections per user
opened all the timeand very few applications qualify for VOIP status.
=== Presence on Android ===
==Goals==
Desktop/phone Phone UI for users to:
* see at a glance and manage what applications they granted presence access to.
* see lively notifications and act on them or ignore them.
* manage how much idling is considered to be 'online' vs. 'away' vs. 'offline'
* set custom status updates
Mozilla Cloud Services run system that:
* the user set permissions: "yes the chat app can get my presence updates"
* the user then can use the chat app independantly from the presence thing - or not having it running at some point at all
* the chat app interacts with the presence server: it gets a stream of presence update from the presence server only if the user authorized itand status messages if set
* the chat app can notify a user that another user pinged him in the room
=== Is this going to use XMPP? ===
The presence channel to AppServices will have an XMPP option. It quite possibly will! However, its 's useful to remember that Mozilla Presence is in very early stages at this moment. Worrying about the exact implementation is a detail that we're not addressing yet as we build some prototypes to test ideas out and prove the overall concept is worthwhile.
=== Shouldn't Mozilla have a way for me to see my contacts online? ===
Confirm
192
edits

Navigation menu