You will need to write your own REST endpoints. Let’s talk about the elephant in the room: this is the most work. REST happens to fit well with the CRUD (create-read-update-delete) operations common to database records. These servers do not have SDKs or APIs to access them, so creating REST endpoints to access the database is a common solution. If you have an existing database to which you need to connect your app, or if you have a requirement to use a conventional SQL database server, such as MySQL or PostgreSQL, this is going to be your primary choice. If your app requires this kind of functionality, this will mean additional coding in order to support keeping parts of the database offline for use when the network is down, synchronizing edits when it is back up, and resolving conflicts. There are very limited facilities for dealing with the issues of apps being offline, either due to a lack of data connection or a temporary network failure. The disadvantage of CloudKit is that it is a mostly cloud-only storage framework. CloudKit is the Apple-provided cloud storage backend for iOS and Mac applications, and it is free to develop with, and free for production use within very generous limits. If you have no plans to extend it beyond Apple platforms (with an exception for basic web functionality), you have the convenience of CloudKit. Here are some recommendations for different situations. There are many different ways to provide a database backend for your app. You may have even been “helped” by a PaaS or IaaS platform that has given you a conventional SQL database instance: great for web apps, but how do I connect this to my iOS app? Do I want to? Sometimes you’re starting from scratch, and you have a bunch of options available to you, and you just don’t know which one is right for your app. When you’re putting together a new app, especially if it’s your first exposure to iOS development, it can be a confusing experience.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |