3.7.3 Avatar
Avatars for the RCS contacts are downloaded by the client application just after a contact has been marked as an RCS. The application connect to the EMC API method responsible for returning avatar for the requested username. Once downloaded avatar file is then stored on the device.
On receiving a Notify packet with a presence document with a status of either particular user or the whole list of watched entities the client application parses the body part of the document where one of the parameter is a timestamp of the last update of user’s avatar. If the timestamp represents a newer date than the one associated to the downloaded avatar the client will call the API in order to download the latest version of the file.
A user can make a new avatar directly using the phone’s camera or choose a picture from gallery. The picture is then uploaded to the EMCD/avatar.ashx