[英]What the best approach to handle offline and online user in app?
I have an app and I want to handle online and offline users, which when user destroy the app from the background I have to send to the server that this user is offline now, otherwise send online我有一个应用程序,我想处理在线和离线用户,当用户从后台销毁应用程序时,我必须将这个用户现在离线的服务器发送到服务器,否则在线发送
make a server request in onDestroy method onDestroy: The final call you receive before your activity is destroyed.在 onDestroy 方法中发出服务器请求 onDestroy:在销毁活动之前收到的最终调用。
public void onDestroy() {
super.onDestroy();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.