Search code examples
iosswiftfirebasefirebase-authenticationrealm

Do I have to store iOS app data on a remote server if I'm implementing Firebase authentication?


Basically I have a relatively simple iOS gym app that I'm working on. It records things like Dates, exercise names, sets, reps and I'm currently using Realm to persist the data locally. I would like to also implement Firebase authentication, so I would like to know if it's possible to implement User authentication if I'm storing data locally or does it only work if I'm using cloud/real-time storage? If someone could explain this to me I would greatly appreciate it.

Sorry if it's a dumb question, but I'm relatively new to programming and iOS development so I'm still figuring these things out.

Much appreciated!


Solution

  • Firebase Authentication doesn't require you to store any data anywhere, other than what it collects about the user from the authentication provider you're using to sign in the user. You can do whatever you want with other data.