Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If the state is only online then the choice is good, if you need only local then sqlite is better
What do you need to store? If something simple like last result, selected settings and something like that, then choose UserDefaults. If you need to record the fact of buying something inside the game, then use Keychain. If there is more data and you need a full-fledged database, then look towards CoreData or Realm. By the way, CoreData can store data in the cloud using CloudKit and it's free. But if you have a cross-platform, you need backing and all that, then take Firebase.
Here is a great article on the subject: https://fluffy.es/persist-data/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question