I am trying to write data to a Firebase database, but I get the following error when I click on my saved button.
2016-12-02 11: 09: 42.548 StartupNow [1482: 60415] [FirebaseDatabase] setValue: or removeValue: in / test / -KY-VpLZWbp4vjF3BpMk failed with the error: mission_denied
Things I tried: I made sure that my .read and .write rules were set to true in my console, reconnected my saveButtonPressed button, wrote the Firebase link to the function, and called it in my saveButtonPressed () method.
Additional resource Here is a tutorial that I am following. https://youtu.be/F42CzqIBxHQ?t=4m14s
var ref: FIRDatabaseReference? override func viewDidLoad() { super.viewDidLoad() ref = FIRDatabase.database().reference() } @IBAction func saveButtonPressed() { // TODO: Post data to Firebase firebaseChild() print("********************************") print("********************************") } func firebaseChild () { ref?.child("Test").childByAutoId().setValue("Hello Firebase") }
FreddieOh Slack, , , GoogleService-info.plist, , . (, Firebase, plist.)
GoogleService-info.plist
, , , GoogleService-info.plist DATABASE_URL. Firebase , , URL-, , plist.
DATABASE_URL
, - , , , "". ... , - .:)
. / . , .
: !
{ "rules": { ".read": true, ".write": true } }
Firestore
service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write; } } }
Firebase , .
, . . .
: https://youtu.be/FcQCPqckvqo
. ,
fireBase β β β (" ") β make both
{ "rules": { ".read": true, ".write": true }
, .
Source: https://habr.com/ru/post/1662673/More articles:Swift - create GIF from images and turn it into NSData - iosCan vscode support absolute references on the way to import ES6? - javascriptRespond to a workspace permission error SDK - androidHow to use Visual Studio code to debug django - pythonUpdate component on navigator.pop () - react-nativeAssertionError: this root view is already bound to the catalyst instance manager - androidAssign new value to std :: - c ++ functionMockito, considering stubbing as a challenge - javaWhat is the relationship between RGB, XYZ color space and color matching? - colorsWhy can some packages be updated in Pip and not in Conda? - pythonAll Articles