Visit http://console.firebase.google.com to begin. Most tutorial projects can be simple JSON storage sinks accessed from iOS.
- Click Add Project
- Enter a project name.
- Disable "Use the default settings for sharing Google Analytics for Firebase data".
- Click Continue.
- Uncheck all boxes for "Customize data sharing for your new project".
- Click Create project.
- Wait and then click Continue.
- On the next screen locate Firebase > Develop on the left hand column. Click Database
- Do not click Beta > Cloud Firestore > Create database. Instead, scroll down to "Or choose Realtime Database" and click Create database.
- Select Start in test mode (and not "Start in locked mode"). Click Enable.
- If Firebase warns you about how very unsafe your test database is, dismiss that warning.
Locate the URL at the top of the Database > Data chart on the right two thirds of the screen. The endpoint URL appears just to the right of the link logo, for example "https://test-cc4bb.firebaseio.com/". Click the link logo to select and copy it.
Make sure to append a json
path extension (including period) to your URL requests. Add a name to a particular store for codable arrays, e.g.
var targetURL = serviceEndpointURL
.appendingPathComponent("devices")
if let record = record {
targetURL = targetURL.appendingPathComponent(record)
}
targetURL = targetURL.appendingPathExtension("json")