同步联系人 firebase
Sync contacts firebase
我正在我的应用程序中开发一项功能,以帮助用户找到已注册并在 phone 上的联系人列表中的朋友。就像 instagram 在这里做的那样:
firebase有没有办法同步和比较联系人?我认为将每个 phone 联系人与每个数据库联系人进行比较在性能方面不会非常有效。
Does firebase have any way to synchronize and compare contacts?
没有。您应该为此创建自己的系统。
I think that comparing each phone contact with each database contact will not be very efficient in terms of performance.
不是。其实非常简单高效,因为Firebase SDK提供了一个方法可以帮助你简单的验证用户是否存在于数据库中,这个方法叫做exists().
有关更多信息,请参阅我在此 .
中的回答
我正在我的应用程序中开发一项功能,以帮助用户找到已注册并在 phone 上的联系人列表中的朋友。就像 instagram 在这里做的那样:
firebase有没有办法同步和比较联系人?我认为将每个 phone 联系人与每个数据库联系人进行比较在性能方面不会非常有效。
Does firebase have any way to synchronize and compare contacts?
没有。您应该为此创建自己的系统。
I think that comparing each phone contact with each database contact will not be very efficient in terms of performance.
不是。其实非常简单高效,因为Firebase SDK提供了一个方法可以帮助你简单的验证用户是否存在于数据库中,这个方法叫做exists().
有关更多信息,请参阅我在此