如果用户同时关闭 wi-fi、3g、4g 等并反向(没有互联网连接)。Firebase 数据库名称子连接:(true/false) 因此,当互联网连接、wi-fi、3g、4g 等关闭或丢失时,用户处于离线状态,因此无法找到他。
记住两个场景:之前和之后。如果用户在其他用户搜索他之前离线,那么他不会显示在列表结果中,如果用户在其他用户搜索他之后离线,那么它会在用户上显示 NO MORE AVAILABLE 图标
请有人帮助我解决这个问题。
java android firebase firebase-authentication firebase-realtime-database