title: Add Online Offline Status in Flutter App Like Whatsapp using Firebase but how i Handle without internet
body: <p>if I turn off wifi and then close the app, didChangeAppLifecycleState() will try to set the status to 'offline' in Firestore, but as wifi is off <strong>Firestore can't set the status to offline... So, other users of the app will see that user 'online'. How can I fix this?</strong></p>