4

I'm developing a feature in my app to help users find friends who are registered and are in the contact list on the phone. Something like what instagram does here: instagram example

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.

Vitor Ferreira
  • 1,075
  • 1
  • 14
  • 28

1 Answers1

3

Does firebase have any way to synchronize and compare contacts?

It does not. You should create your own system for that.

I think that comparing each phone contact with each database contact will not be very efficient in terms of performance.

Is not. In fact, is quite simple and efficient since Firebase SDK provides a method that can help you simply verify if a user exist or not in the database, this method is called exists().

For more informations, please also see my answer from this post.

Alex Mamo
  • 130,605
  • 17
  • 163
  • 193