I am working on an app in swift and need help. I am trying to have a search object on the screen and when you type letters it will bring a result from the realtime database using firebase. Please help. I don’t know how I can code that. Please Please Please Help.
- December 24, 2021
- 216 views
- 0 votes
- 2 Answers
-
2
Answers
You have to be a bit more specific about what exactly is it that you are trying to do. Firstly – what technologies are you using? JavaScript? What framewroks? React? Angular? Vuejs? Vanilla JavaScript? Is it a restful application you are doing or server rendered?
Depending on your answers to the above questions the code can vary greatly. Here I can give you a general solution though:
I just did this a few weeks ago for my app you are in luck! I am using swift programming language btw.
So according to firebase you should not use firebase to search for documents in the database. Firebase Documentation on this.. Instead you should use something else like "Algolia", "Elastic", or "typeSense". I chose to use Algolia and it took me about a day to implementing my app. Super easy.
But if you really want to use firebase (which is not recommended) you could use this: