Need In-App chat Feature for an Android based mobile application

Cerrado Publicado hace 6 años Pagado a la entrega
Cerrado Pagado a la entrega

Chat feature is needed for an existing android mobile application. A new menu item called "Chat" is needed. Selecting this menu item should take the user into the Chat page. A new chat conversation should be initiated if there is no chat history. If a conversation has already been initiated, the user should be shown the last 2 day's chat history.

If there is no chat history, the app should call a url (Server url).

The values to be posted to this url should be 1. the android user id (to be identified based on how the existing app identifies the user) and 2. the chat text. In the case where there is no chat history, an empty string must be sent as chat text. If there is a chat history, the user is expected to reply to the last message sent by the server. This user reply should be the chat text that is sent to the server.

A conversation is considered new, if the JSON object posted as response from server url has a field “CHAT-STATE” set to “NEW”.

Here are some sample JSON object responses,

{“CHAT-STATE”:”NEW”, “CHAT-TEXT”:””, “QUICK-REPLIES”: [], “businessName”:”XYZ Computing Corp.”}

{“CHAT-STATE”:”OLD”, “CHAT-TEXT”:”Do you like roses?”, “QUICK-REPLIES”: [{“replyText”:”YES”},{“replyText”:”NO”}], “businessName”:”XYZ Computing Corp.”, “FIELD”:”VALUE”}

{“CHAT-STATE”:”COMPLETE”, “CHAT-TEXT”:”Thanks for chatting with us.”, “QUICK-REPLIES”: [], “FIELD”:”VALUE”}

The first response to the user should be a welcome message. The message should be "Welcome to {Business name}".

If the mobile device has data connectivity, then the Business name will be provided by the server as part of a JSON object returned by the server url.

{“CHAT-STATE”:”NEW”, “CHAT-TEXT”:””, “QUICK-REPLIES”: [], “businessName”:”XYZ Computing Corp.”}

If there is no internet data connectivity detected in the device, the Business name should be fetched from an excel file pre-stored in the device.

The place holder {Business name} should be dynamically populated from an excel sheet. The excel sheet will have the Business Name populated in cell B11 in the first sheet.

This excel sheet is available in a particular url which will be provided to the developer. The application should be able to download the excel sheet from this url at a particular time and frequency (say for example 9 AM GMT, every Wednesday).

The welcome message should be followed by a few options for the user to choose [login to view URL] options should look like Facebook Messenger's quick reply bubbles that are horizontally scrollable. Each option bubble is of 20 characters maximum length. The maximum number of option bubbles will be 10.

When user selects an option bubble, the text displayed in the option bubble and the user's identification (from the existing android app) should be posted to the server (the url for this server will be provided to the CodeGravity developer).

The server will provide a reply text in JSON format. The JSON object will also have the data for Quick Reply option bubbles, under the JSON Array named “QUICK-REPLIES”

In summary, the features are listed below:

1. In-App chat page

2. Data connectivity based switch to decide the Business Name in the welcome message text.

3. Synchronization of locally stored excel sheet with server version based on a pre-defined time and frequency.

4. Reading the excel sheet to use the content to frame the message text

Freelance

Nº del proyecto: #15573635

Sobre el proyecto

Proyecto remoto Activo hace 6 años