<div><ul><li><p>Add functionality to show a user’s <strong>online status</strong> (e.g., “Online now”) and <strong>last seen time</strong> (e.g., “Last seen 2 hours ago”) in the chat app. </p> </li><li><p>Status should be updated in real-time, with minimal delay. </p> </li><li><p>Online means the user is actively using the app (e.g., chat screen open or app in foreground). </p> </li><li><p>Last seen should show when the user was last online if they are currently offline. </p> </li><li><p>These indicators should be visible in: </p><ul><li><p>One-to-one chat header </p> </li><li><p>User profile or chat list (optional) </p> </li> </ul> </li><li><p>Include basic privacy settings to allow users to <strong>hide their last seen/online</strong> status if needed. </p> </li><li><p>Status updates should be efficient and not add heavy load on the server or drain mobile battery. </p> </li><li><p>Implement real-time sync using WebSocket, Firebase presence, or similar methods. </p> </li><li><p>Should handle sudden disconnects, network loss, or app backgrounding smooth </p> </li> </ul><hr> </div>