
Public class MainActivity extends AppCompatActivity ] Caller=:7440 $1400:301 $H.handleMessage:2148 android.os.Handler.dispatchMessage:106 android.os.Looper.loop:246 It create the same issue even on new project. I also tried with new android studio blank project. The value entered at database is the last value not the current one. Now when user actually go offline the listener will call and this time app will record the random timestamp/int/long (value = 2 entered) value and save it on server. Use Case: User enter into app and app will fire listener and where we are generating timestamp (for example take random int value = 1) but it won't record on server because user is online. It's not about the timestamp only, i tried to generate random long, int value but it always the previous generate one. But when comparing system generate timestamp and logged at server, it always the timestamp which previous timestamp not the same at per the logcat (current timestamp) on android device. This process work fine every time but when user going offline by calling the listener will call and make user offline with the system timestamp. In my android app i am submitting the last seen to Realtime Database ".info/connected" and calling FirebaseDatabase.goOffline() at onStop and back online by FirebaseDatabase.goOnline() at onResume. Component version: :firebase-bom:28.0.1'.Android Studio version: Arctic Fox (2020.3.1).
