ios - Fetch all users from Firebase with Facebook login - swift -


my app using facebook login @ moment. trying build search function using uisearchbar.

so question is: in way possible fetch users firebase database array? maybe userid well??

if want see piece of code let me know, did not think relevant question :-)

if have understood you're trying achieve should able save users realtime database upon registering/authenitcating users.

after can perform simple observesingleeventof users @ correct path, this:

rootref.usersref.observesingleevent(oftype: .value)..... 

then completion handler should snapshot, snapshot.value include users.

*please note don't need stop observing method since observe values once stop. don't think need worry memory issues.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -